com.thortech.impls.printable.default documentation
Extending IPrintable to core types with a method of interjecting
comments, whitespace, tags, and discarded data amongst the printing of the actual data.
interject-noise
(interject-noise w opts value-printing-fn)
Using the writer, for the given settings on opts possibly interjects
comments, whitespace, discarded data and potentially prefixes a tag.
Uses value-printing-fn to print the actual data.
maybe-gen
(maybe-gen gen-key opts)
If gen-key is found in opts, calls the supplied generator.
write-discard
(write-discard w opts)
Uses the data generator in (opts :generator/discard) writes the output
prefixed with the discard sequence to the writer
write-tag
(write-tag w opts)
Uses the tag keyword generator in (opts :generator/tag) and writes output to the writer
write-whitespace
(write-whitespace w opts)
Uses the whitespace string generator in (opts :generator/whitespace) and writes output to the writer