Liking cljdoc? Tell your friends :D

fireworks.core


!?clj/smacro

(!?)
(!? x)
(!? _ x)
(!? _ _ x)
source

!?>clj/smacro

(!?> x)
source

!?flopclj/smacro

(!?flop)
(!?flop x)
(!?flop x _)
source

?clj/smacro

(?)
(? x)
(? a x)
(? mode a x)
source

?>clj/smacro

(?> x)

Passes value to clojure.core/tap> and returns value.

Passes value to clojure.core/tap> and returns value.
sourceraw docstring

?flopclj/smacro

(?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.
sourceraw docstring

_logclj/s

(_log {:keys [user-opts]} x)
source

_pclj/s

(_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.
sourceraw docstring

_p2clj/s

(_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))`
sourceraw docstring

_ppclj/s

(_pp {:keys [user-opts]} x)

Called internally.

Called internally.
sourceraw docstring

cast-varclj/s

(cast-var defd {:keys [ns-str]})

Needs to be public, used at runtime by macros

Needs to be public, used at runtime by macros
sourceraw docstring

core-defsclj/s

source

pprintclj/s

(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.
sourceraw docstring

(print-thread {:keys [label] :as cfg-opts} quoted-forms op)
source

resolve-label-lengthclj/s

(resolve-label-length label-length-limit)
source

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

× close