Skip to main content

I/O

EDN

59
  • *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 tr...

  • *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 use...

  • *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

  • char-code

    Convert char to int

  • 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.

  • float?

    Returns true if n is an float.

  • 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 ...

  • get-pretty-writer

    Returns the IWriter passed in wrapped in a pretty writer proxy, unless it's already a pretty writer. Generally, it is un...

  • getf

    Get the value of the field a named by the argument (which should be a keyword).

  • pp

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

  • pprint-indent

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

  • pprint-logical-block

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

  • pprint-newline

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

  • 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 functi...

  • print-table

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

  • setf

    Set the value of the field SYM to NEW-VAL

  • simple-dispatch

    The pretty print dispatch function for simple data structure format.

  • 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 o...

  • newline

    Prints a newline using *print-fn*

  • pr

    Prints the object(s) using string-print. Prints the object(s), separated by spaces if there is more than one. By defaul...

  • pr-str

    pr to a string, returning it. Fundamental entrypoint to IPrintWithWriter.

  • print

    Prints the object(s) using string-print. print and println produce output for human consumption.

  • print-str

    print to a string, returning it

  • printf

    Prints formatted output, as per format

  • println

    Same as print followed by (newline)

  • println-str

    println to a string, returning it

  • prn

    Same as pr followed by (newline).

  • prn-str

    Same as pr-str followed by (newline)

  • with-out-str

    Evaluates exprs in a context in which *print-fn* is bound to .append on a fresh StringBuffer. Returns the string create...