(eagerly x)
Sometimes dw-to-string encounters lazy sequences; those should be made eager
for printing. We call into
twice to compensate for the variation in where
different sequence types conj onto (at some cost to performance).
Sometimes dw-to-string encounters lazy sequences; those should be made eager for printing. We call `into` twice to compensate for the variation in where different sequence types conj onto (at some cost to performance).
(stringify-derefable data)
(stringify-derefable data top-level?)
At the top level, derefables pretend to be sequences -- ie they're printed with a number in front of them -- as an affordance to suggest to the user that they can be drilled into.
At the top level, derefables pretend to be sequences -- ie they're printed with a number in front of them -- as an affordance to suggest to the user that they can be drilled into.
(stringify-map data)
(stringify-map data top-level?)
For each kv pair, stringify k and v, and print them colon-separated, chopped at max-line-length chars, and (if top-level?) prepended with an index number (4 chars).
For each kv pair, stringify k and v, and print them colon-separated, chopped at max-line-length chars, and (if top-level?) prepended with an index number (4 chars).
(stringify-seq data)
(stringify-seq data top-level)
For each item, print it, chopped at max-line-length chars, and optionally prepended with an index number (4 chars).
For each item, print it, chopped at max-line-length chars, and optionally prepended with an index number (4 chars).
(stringify-set data)
(stringify-set data top-level?)
Preserve the literal #{} representation
Preserve the literal #{} representation
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close