Fclib.PrettyThis module provides pretty printing utilities. Same as Pretty_utils but without dependencies to Fclib.List or Fclib.Array.
Formats used with fprintf and alike.
val pretty_seq :
format:(tformatter -> unit) format ->
item:('a aformatter -> 'a -> unit) format ->
sep:unit format ->
?last:unit format ->
?empty:unit format ->
'a aformatter ->
'a Stdlib.Seq.t aformatterPretty prints a sequence.
val pretty_seq2 :
format:(tformatter -> unit) format ->
item:('a aformatter -> 'a -> 'b aformatter -> 'b -> unit) format ->
sep:unit format ->
?last:unit format ->
?empty:unit format ->
'a aformatter ->
'b aformatter ->
('a * 'b) Stdlib.Seq.t aformatterPretty prints a sequence of pairs. Same as pretty_seq but the item format must contain two "%a". This version is intended for maps which can be iterated through sequences of (key, value) pairs.