Implemented by types that can be represented by a known number of characters
Implemented by types that can be represented by a known number of characters
(count-chars this)
Count the number of characters that this
would require to pr
it
Count the number of characters that `this` would require to `pr` it
A protocol for fixed-width layout of data structures for pretty-printing purposes.
A protocol for fixed-width layout of data structures for pretty-printing purposes.
(pr-seq this offset)
Return a seq (of characters, or strings, or seqs of strings, etc.) representing this
.
When called, the current line position is at offset
, and if the result
requires line breaks, it is the responsibility of the implementation to
indent offset
spaces after the line break
Return a seq (of characters, or strings, or seqs of strings, etc.) representing `this`. When called, the current line position is at `offset`, and if the result requires line breaks, it is the responsibility of the implementation to indent `offset` spaces after the line break
(pr-pretty)
(pr-pretty x)
(pr-pretty x & more)
Like clojure.core/pr, but prettier, albeit less conservative with whitespace.
Like clojure.core/pr, but prettier, albeit less conservative with whitespace.
(-pr-raw item)
Print a CharSequence (including Strings) or char directly to out
Print a CharSequence (including Strings) or char directly to *out*
(prn-pretty & more)
Same as pr-pretty followed by (newline).
Same as pr-pretty followed by (newline).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close