Liking cljdoc? Tell your friends :D

dime.internal


*inject-args*clj

source

*original-fn*clj

source

arg-infoclj

(arg-info inject-meta-key arg)

Return a map of argument info. Helper for inject-prepare.

Return a map of argument info. Helper for `inject-prepare`.
sourceraw docstring

echoclj

(echo x & more)

Print all message tokens, returning nil.

Print all message tokens, returning nil.
sourceraw docstring

echo->clj

(echo-> x & more)

Echo message and value in a -> form, returning the value. First arg is considered the value, rest as message tokens.

Echo message and value in a -> form, returning the value. First arg is considered the value, rest as message tokens.
sourceraw docstring

echo->>clj

(echo->> x & more)

Echo message and value in a ->> form, returning the value. Last arg is considered the value, rest as message tokens.

Echo message and value in a ->> form, returning the value. Last arg is considered the value, rest as message tokens.
sourceraw docstring

echofclj

(echof fmt & args)
source

expectedclj

(expected expectation found)
(expected pred expectation found)

Throw illegal input exception citing expectation and what was found did not match. Optionally accept a predicate fn to test found before throwing the exception.

Throw illegal input exception citing `expectation` and what was `found` did not match. Optionally accept a predicate
fn to test `found` before throwing the exception.
sourceraw docstring

get-valclj

(get-val m k)

Given map m, find and return the value of key k. Throw IllegalArgumentException when specified key is not found.

Given map m, find and return the value of key k. Throw IllegalArgumentException when specified key is not found.
sourceraw docstring

inject-prepareclj

(inject-prepare inject-meta-key name-sym arglist)

Given a defn var-name and arglist return a vector [inject-args fn-body] where inject-args is a collection of dependencies (each of them represented as a map) and fn-body is the body expression for partial fn.

Given a defn var-name and arglist return a vector [inject-args fn-body] where inject-args is a collection of
dependencies (each of them represented as a map) and fn-body is the body expression for partial fn.
sourceraw docstring

injected-metaclj

(injected-meta pre-meta
               {:keys [expose-meta-key expose-private-key inject-meta-key
                       pre-inject-meta-key post-inject-meta-key]})

Given pre-injected meta, remove the injection metadata and return post-injection meta data.

Given pre-injected meta, remove the injection metadata and return post-injection meta data.
sourceraw docstring

named-injectables->graphclj

(named-injectables->graph name-injectable-map)
(named-injectables->graph graph name-injectable-map)

Given a map of node-IDs (presumably inferred) to injectables, return a map of node-ID/injectable pairs.

Given a map of node-IDs (presumably inferred) to injectables, return a map of node-ID/injectable pairs.
sourceraw docstring

when-let-multicljmacro

(when-let-multi bindings & body)

Equivalent of when-let that accepts multiple binding forms.

Equivalent of `when-let` that accepts multiple binding forms.
sourceraw docstring

whereamicljmacro

(whereami)

Return a map of attributes pointing to the call-site. May be useful for debugging. Sample return value is below: {:clj-varname "foo.core/bar", :method-name "invoke", :file-name "core.clj", :class-name "foo.core$bar", :line-number 21}

Return a map of attributes pointing to the call-site. May be useful for debugging. Sample return value is below:
{:clj-varname "foo.core/bar",
 :method-name "invoke",
 :file-name   "core.clj",
 :class-name  "foo.core$bar",
 :line-number 21}
sourceraw docstring

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

× close