A library of functions to enhance clojure.core.
A library of functions to enhance clojure.core.
(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.
A protocol for finding errors in a collection.
A protocol for finding errors in a collection.
(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.
(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.
A protocol for finding success/non errors in a collection.
A protocol for finding success/non errors in a collection.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close