(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`.
(echo x & more)
Print all message tokens, returning nil.
Print all message tokens, returning nil.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(when-let-multi bindings & body)
Equivalent of when-let
that accepts multiple binding forms.
Equivalent of `when-let` that accepts multiple binding forms.
(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}
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close