pprint
Pretty-print data structures.
Functions
Jump to function (3) ›
pprint/inspect
(inspect x & [width])
Pretty-print a value for humans (colored when stdout is a terminal) and return it unchanged, so it can be dropped into threading pipelines.
Example:
(-> {:a [1 2 3]} inspect (get :a))
pprint/pprint
(pprint form & [width])
Pretty-print a data structure to stdout with line breaks and indentation.
Example:
(pprint {:a [1 2 3] :b {:c 4 :d 5}})
pprint/pprint-str
(pprint-str form & [width])
Pretty-print a data structure to a string with line breaks and indentation.
Example:
(pprint-str {:a [1 2 3] :b {:c 4 :d 5}})