Skip to main content

clojure.pprint

*

  • *print-base*

    The base to use for printing integers and rationals.

  • *print-miser-width*

    The column at which to enter miser style. Depending on the dispatch table, miser style add newlines in more places to t...

  • *print-pprint-dispatch*

    The pretty print dispatch function. Use with-pprint-dispatch or set-pprint-dispatch to modify.

  • *print-pretty*

    Bind to true if you want write to use pretty printing

  • *print-radix*

    Print a radix specifier in front of integers and rationals. If *print-base* is 2, 8, or 16, then the radix specifier us...

  • *print-right-margin*

    Pretty printing will try to avoid anything going beyond this column. Set it to nil to have pprint let the line be arbitr...

  • *print-suppress-namespaces*

    Don't print namespaces with symbols. This is particularly useful when pretty printing the results of macro expansions

C

  • cl-format

    An implementation of a Common Lisp compatible format function. cl-format formats its arguments to an output stream or st...

  • code-dispatch

    The pretty print dispatch function for pretty printing Clojure code.

F

  • formatter

    Makes a function which can directly run format-in. The function is fn [stream & args] ... and returns nil unless the str...

  • formatter-out

    Makes a function which can directly run format-in. The function is fn [& args] ... and returns nil. This version of the ...

  • fresh-line

    Make a newline if *out* is not already at the beginning of the line. If *out* is not a pretty writer (which keeps track ...

G

  • get-pretty-writer

    Returns the java.io.Writer passed in wrapped in a pretty writer proxy, unless it's already a pretty writer. Generally, ...

P

  • pp

    A convenience macro that pretty prints the last thing output. This is exactly equivalent to (pprint *1).

  • pprint

    Pretty print object to the optional output writer. If the writer is not provided, print the object to the currently bou...

  • pprint-indent

    Create an indent at this point in the pretty printing stream. This defines how following lines are indented. relative-t...

  • pprint-logical-block

    Execute the body as a pretty printing logical block with output to *out* which must be a pretty printing writer. When u...

  • pprint-newline

    Print a conditional newline to a pretty printing stream. kind specifies if the newline is :linear, :miser, :fill, or :m...

  • pprint-tab

    Tab at this point in the pretty printing stream. kind specifies whether the tab is :line, :section, :line-relative, or :...

  • print-length-loop

    A version of loop that iterates at most *print-length* times. This is designed for use in pretty-printer dispatch funct...

  • print-table

    Prints a collection of maps in a textual table. Prints table headings ks, and then a line of output for each row, cor...

S

  • set-pprint-dispatch

    Set the pretty print dispatch function to a function matching (fn [obj] ...) where obj is the object to pretty print. Th...

  • simple-dispatch

    The pretty print dispatch function for simple data structure format.

W

  • with-pprint-dispatch

    Execute body with the pretty print dispatch function bound to function.

  • write

    Write an object subject to the current bindings of the printer control variables. Use the kw-args argument to override i...

  • write-out

    Write an object to *out* subject to the current bindings of the printer control variables. Use the kw-args argument to ...