Liking cljdoc? Tell your friends :D

clj-contrib.core

A library of functions to enhance clojure.core.

A library of functions to enhance clojure.core.
raw docstring

as-some->cljmacro

(as-some-> expr name & forms)

as->, with the nil checking of some->. Binds name to expr. When name is not nil, evaluates the first form in the lexical context of that binding. When that result is not nil, then binds name to result, repeating for each successive form.

as->, with the nil checking of some->.
Binds name to expr. When name is not nil, evaluates the first
form in the lexical context of that binding. When that result
is not nil, then binds name to result, repeating for each
successive form.
sourceraw docstring

boolclj

(bool x)

Return the boolean value of x.

Return the boolean value of `x`.
sourceraw docstring

Errorscljprotocol

A protocol for finding errors in a collection.

A protocol for finding errors in a collection.

errorsclj

(errors coll)

Returns a map of the :errors, which are entries with :error keys.

Returns a map of the `:errors`, which are entries with `:error` keys.
sourceraw docstring

same-ish?clj

(same-ish? x y threshold)

Difference of x and y whithin threshold? Returns true or false.

Difference of `x` and `y` whithin `threshold`?
Returns true or false.
sourceraw docstring

Successcljprotocol

A protocol for finding success/non errors in a collection.

A protocol for finding success/non errors in a collection.

successclj

(success coll)

Count all non errors as success. Returns a map of the :success, which are entries without ':error' keys.

Count all non errors as success.
Returns a map of the `:success`, which are entries without ':error' keys.
sourceraw docstring

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

× close