(?> x)Passes value to clojure.core/tap> and returns value.
Passes value to clojure.core/tap> and returns value.
(?flop)(?flop x)(?flop x a)Prints the form (or user-supplied label), the namespace info,
and then the value. Same as fireworks.core/?, but order of arguments
is reversed in the case of 2 arities. Inteded for use both
internal to fireworks (tracing macros), and also for users wanting
to drop a ? call into a thread-first form and also pass an options
map.
The form (or optional label) is formatted with pprint. The value is formatted with fireworks.core/_p.
Returns the value.
If value is a list whose first element is a member of fireworks.core/core-defs, the value gets evaluated first, then the quoted var is printed and returned.
Prints the form (or user-supplied label), the namespace info, and then the value. Same as fireworks.core/?, but order of arguments is reversed in the case of 2 arities. Inteded for use both internal to fireworks (tracing macros), and also for users wanting to drop a `?` call into a thread-first form and also pass an options map. The form (or optional label) is formatted with pprint. The value is formatted with fireworks.core/_p. Returns the value. If value is a list whose first element is a member of fireworks.core/core-defs, the value gets evaluated first, then the quoted var is printed and returned.
(_p opts x)(_p a opts x)Internal runtime dispatch target for fireworks macros.
Pretty-prints the value with syntax coloring. Takes an optional leading argument (custom label or options map). Returns the value.
Internal runtime dispatch target for fireworks macros. Pretty-prints the value with syntax coloring. Takes an optional leading argument (custom label or options map). Returns the value.
(_p2 opts x)Internal runtime dispatch target for fireworks macros.
Takes an optional leading argument (custom label or options map).
Pretty-prints the value with syntax coloring.
Returns the value.
Will not use fireworks formatting if:
In ClojureScript, if value is native data structure. Value will be printed with js/console.log or fireworks.core/pprint.
A native printing flag is supplied at callsite to fireworks.core/?
Flag must be a leading keyword, one of:
#{:pp, :pp-, :log, or :log-}
Example: (? :pp (+ 1 1))
A valid :print-with option is supplied at callsite to fireworks.core/?
Value must be one of the following functions from clojure.core:
#{pr pr-str prn prn-str print println}
Example: (? {:print-with prn} (+ 1 1))
Internal runtime dispatch target for fireworks macros.
Takes an optional leading argument (custom label or options map).
Pretty-prints the value with syntax coloring.
Returns the value.
Will not use fireworks formatting if:
- In ClojureScript, if value is native data structure.
Value will be printed with js/console.log or fireworks.core/pprint.
- A native printing flag is supplied at callsite to fireworks.core/?
Flag must be a leading keyword, one of:
`#{:pp, :pp-, :log, or :log-}`
Example: `(? :pp (+ 1 1))`
- A valid `:print-with` option is supplied at callsite to fireworks.core/?
Value must be one of the following functions from `clojure.core`:
`#{pr pr-str prn prn-str print println}`
Example: `(? {:print-with prn} (+ 1 1))`
(cast-var defd {:keys [ns-str]})Needs to be public, used at runtime by macros
Needs to be public, used at runtime by macros
(pprint x)(pprint x opts)(pprint writer
x
{:keys [max-width map-entry-separator]
:or {max-width 72 map-entry-separator ","}
:as opts})Pretty-print an object.
Given one arg (an object), pretty-print the object into out using the default options.
Given two args (an object and an options map), pretty-print the object into out using the given options.
Given three args (a java.io.Writer, a object, and an options map), pretty-print the object into the writer using the given options.
If print-dup is true, pprint does not attempt to pretty-print; instead, it falls back to default print-dup behavior. ClojureScript does not support print-dup.
Options:
:max-width (long or ##Inf, default: 72) Avoid printing anything beyond the column indicated by this value.
:map-entry-separator (string, default: ",") The string to print between map entries. To not print commas between map entries, use an empty string.
Pretty-print an object.
Given one arg (an object), pretty-print the object into *out* using
the default options.
Given two args (an object and an options map), pretty-print the object
into *out* using the given options.
Given three args (a java.io.Writer, a object, and an options map),
pretty-print the object into the writer using the given options.
If *print-dup* is true, pprint does not attempt to pretty-print;
instead, it falls back to default print-dup behavior. ClojureScript
does not support *print-dup*.
Options:
:max-width (long or ##Inf, default: 72)
Avoid printing anything beyond the column indicated by this
value.
:map-entry-separator (string, default: ",")
The string to print between map entries. To not print commas
between map entries, use an empty string.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |