YC.PrettyPrinter


Format

Namespace: YC.PrettyPrinter

Nested types and modules

TypeDescription
Format
Frame
firstWidth
height
lastWidth
totalWidth

Functions and values

Function or valueDescription
cFirst
Signature: int
cLast
Signature: int
cMid
Signature: int
emptyFormat
Signature: Format
frameFirst frame
Signature: frame:int<MeasureProduct<Frame,MeasureOne>> -> int<MeasureProduct<firstWidth,MeasureOne>>
frameLast frame
Signature: frame:int<MeasureProduct<Frame,MeasureOne>> -> int<MeasureProduct<lastWidth,MeasureOne>>
frameMid frame
Signature: frame:int<MeasureProduct<Frame,MeasureOne>> -> int<MeasureProduct<totalWidth,MeasureOne>>
indentFormat h format
Signature: h:int -> format:Format -> Format

Adding indent to given Format.

newFrame first mid last
Signature: first:int<MeasureProduct<firstWidth,MeasureOne>> -> mid:int<MeasureProduct<totalWidth,MeasureOne>> -> last:int<MeasureProduct<lastWidth,MeasureOne>> -> int<MeasureProduct<Frame,MeasureOne>>
nl_skip n s
Signature: n:int -> s:string -> string
spaces n
Signature: n:int -> string
stringToFormat s
Signature: s:string -> Format

Making Format from string.

Fork me on GitHub