Pretty printers in Swift
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.