Closures
Simple pretty printers in Swift, based on Wadler’s pretty printers. If you need something more tested, use DoctorPretty
The key idea in these pretty printers is to build a datatype that supports choice: a document can render either one way or another.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
Pretty
Simple pretty printers in Swift, based on Wadler’s pretty printers. If you need something more tested, use DoctorPretty
The key idea in these pretty printers is to build a datatype that supports choice: a document can render either one way or another.
Examples