com.thortech.print.util documentation
Helpers for printing collections, etc.
print-map
(print-map m w opts)(print-map m w opts separator)
Prints a map, with elements separated by separator (defaults to comma+pace).
Keys and values are printed via IPrintable protocol.
print-seq-contents
(print-seq-contents coll w opts separator)(print-seq-contents coll w opts print-one separator)
prints the contents of a sequence separated by separator.
separator can be a string or a fn (uses call-through).
Elements default to printing via the IPrintable protocol
unless another print-one fn is supplied.
print-sequential
(print-sequential coll w opts begin separator end)
Prints a sequential collection with print-seq-contents delimited with begin & end
write-character
(write-character c w)
Writes a character using the IWriter protocol. Named chars are looked up
using core/char-name-string collection.
write-date
(write-date d w)
Write a java.util.Date using the IWriter protocol
as RFC3339 timestamp, always in UTC.
write-string
(write-string s w)
Writres a string using the IWriter protocol. Escape chars are looked up
using core/char-escape-string collection.
write-uuid
(write-uuid uuid w)
Write a java.util.UUID using the IWriter protocol.