Liking cljdoc? Tell your friends :D
Clojure only.

orchard.pp

A pretty-printer for Clojure data structures. This namespace is borrowed from Eero Helenius' pp project and modified according to Orchard needs. Linear printing parts were replaced with substitutes from orchard.print for reuse and consistency.

Based on the algorithm described in "Pretty-Printing, Converting List to Linear Structure" by Ira Goldstein (Artificial Intelligence, Memo No. 279 in Massachusetts Institute of Technology A.I. Laboratory, February 1973).

A pretty-printer for Clojure data structures. This namespace is borrowed from
Eero Helenius' pp project and modified according to Orchard needs. Linear
printing parts were replaced with substitutes from `orchard.print` for reuse
and consistency.

Based on the algorithm described in "Pretty-Printing, Converting List
to Linear Structure" by Ira Goldstein (Artificial Intelligence, Memo
No. 279 in Massachusetts Institute of Technology A.I. Laboratory,
February 1973).
raw docstring

pprintclj

(pprint x)
(pprint x opts)
(pprint
  writer
  x
  {:keys [indentation max-width] :or {indentation "" max-width 72} :as opts})

Pretty-print an object into writer (out by default). Options:

  • :indentation (string) - Shift printed value by this string to the right.
  • :max-width (default: 72) - Avoid printing anything beyond the column indicated by this value.
Pretty-print an object into `writer` (*out* by default). Options:
- `:indentation` (string) - Shift printed value by this string to the right.
- `:max-width` (default: 72) - Avoid printing anything beyond the column
indicated by this value.
sourceraw docstring

pprint-strclj

(pprint-str x)
(pprint-str x options)

Pretty print the object x. The :indentation option is the number of spaces used for indentation.

Pretty print the object `x`. The `:indentation` option is the number of spaces
used for indentation.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close