Liking cljdoc? Tell your friends :D

fireworks.core


!?clj/s

source

!?*clj/s

(!?*)
(!?* x)
(!?* _ x)

A no-op function which returns the value. Intended to temporarily silence the printing of a form while still keeping it wrapped.

A no-op function which returns the value. Intended to temporarily silence the
printing of a form while still keeping it wrapped.
sourceraw docstring

!?-clj/s

source

!?--clj/s

(!?--)
(!?-- x)
source

!?>clj/s

source

!?flopclj/s

source

!?iclj/s

source

!?lclj/s

source

!?logclj/s

source

!?log-clj/s

source

!?ppclj/s

source

!?pp-clj/s

source

!?traceclj/s

source

?clj/smacro

(?)
(? x)
(? a x)

Prints the form (or user-supplied label), the namespace info, and then the value.

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.

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

?-clj/s

(?-)
(?- x)
(?- a x)

Prints only the value. The value is formatted with fireworks.core/_p. Returns the value.

Prints only the value.
The value is formatted with fireworks.core/_p.
Returns the value.
sourceraw docstring

?--clj/smacro

(?--)
(?-- x)

Prints a user-supplied label, following by the namespace info. Designed for providing commentary in your program.

If the label is multiline, the file-info is instead placed above the label.

The form (or optional label) is formatted with pprint.

Prints a user-supplied label, following by the namespace info.
Designed for providing commentary in your program.

If the label is multiline, the file-info is instead placed above
the label.

The form (or optional label) is formatted with pprint.
sourceraw docstring

?>clj/s

(?> 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

?iclj/smacro

(?i)
(?i x)
(?i a x)

Prints the namespace/file info, and then the value.

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 namespace/file info, and then the value.

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

?lclj/smacro

(?l)
(?l x)
(?l a x)

Prints the form (or user-supplied label), and then the value.

The form (or optional label) is formatted with pprint. The value is formatted with fireworks.pp/_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), and then the value.

The form (or optional label) is formatted with pprint.
The value is formatted with fireworks.pp/_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

?letclj/smacro

(?let & args)

Printing of bindings in let. Returns body. WIP. Currently undocumented, will probably fold into trace? functionality and remove this macro.

Printing of bindings in let. Returns body. WIP.
Currently undocumented, will probably fold into trace? functionality and remove this macro.
sourceraw docstring

?logclj/smacro

(?log)
(?log x)
(?log a x)

Prints the form (or user-supplied label), the namespace info, and then logs the value using console.log or pp/pprint

The form (or optional label) and value are 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 logs the value using console.log or pp/pprint

The form (or optional label) and value are
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

?log-clj/s

(?log-)
(?log- x)

Prints just the value using console.log or pp/pprint. Returns the value.

Prints just the value using console.log or pp/pprint. Returns the value.
sourceraw docstring

?ppclj/smacro

(?pp)
(?pp x)
(?pp a x)

Prints the form (or user-supplied label), the namespace info, and then logs the value using pp/pprint.

The form (or optional label) and value are 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 logs the value using pp/pprint.

The form (or optional label) and value are
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

?pp-clj/s

(?pp-)
(?pp- x)

Prints just the value using console.log or pp/pprint. Returns the value.

Prints just the value using console.log or pp/pprint. Returns the value.
sourceraw docstring

?traceclj/smacro

(?trace x)
(?trace user-opts x)
source

_logclj/s

(_log 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

_ppclj/s

(_pp 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

core-defs-clj-classesclj/s

source

p-dataclj/smacro

(p-data)
(p-data x)
(p-data a x)

Formats the namespace info, then the form (or user-supplied label), and then the value. The form (or optional label) and value are formatted with fireworks.core/p.

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.

Returns a map of data with the following shape:

{:formatted {:string "..." :css-styles [...]} :formatted+ {:string "..." :css-styles [...]} :file "sandbox/browser.cljs" :end-column 32 :ns-str "sandbox.browser" :file-info-str "sandbox.browser:119:22" :column 22 :line 119 :end-line 119 :quoted-value "..."}

The entries [:formatted :string], [:formatted+ :string], and [:quoted-value] represent the syntax-colored values. The tokens within these strings are wrapped with %c escaped codes for browser dev consoles, or sgr codes, for terminal emulators.

Formats the namespace info, then the form (or user-supplied label),
and then the value. The form (or optional label) and value are
formatted with fireworks.core/p.

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.

Returns a map of data with the following shape:

{:formatted     {:string "..." :css-styles [...]}
 :formatted+    {:string "..." :css-styles [...]}
 :file          "sandbox/browser.cljs"
 :end-column    32
 :ns-str        "sandbox.browser"
 :file-info-str "sandbox.browser:119:22"
 :column        22
 :line          119
 :end-line      119
 :quoted-value  "..."}

The entries [:formatted :string], [:formatted+ :string], and [:quoted-value]
represent the syntax-colored values. The tokens within these strings are
wrapped with `%c` escaped codes for browser dev consoles, or sgr codes,
for terminal emulators.
sourceraw docstring

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 cfg-opts quoted-forms op)
source

sym<->strclj/s

(sym<->str {:keys [x pred f binding-sym?]})
source

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

× close