(as-seq value)
If value is sequential? then just return it. If not then wrap it in a vector.
If value is sequential? then just return it. If not then wrap it in a vector.
(func-or-default f default)
If the result of calling f is not nil then returns the result, otherwise returns default.
If the result of calling f is not nil then returns the result, otherwise returns default.
(function? x)
Returns true if argument is a function or a symbol that resolves to a function (not a macro).
Returns true if argument is a function or a symbol that resolves to a function (not a macro).
(map-some short-circuit? f col)
Behaves exactly like map but when short-circuit?
is true
uses some
and wraps the first non nil value in a vector.
Behaves exactly like map but when `short-circuit?` is true uses `some` and wraps the first non nil value in a vector.
(missing? value)
If value is equal to :clova.core/key-not-found? then returns true oterwise returns false.
If value is equal to :clova.core/key-not-found? then returns true oterwise returns false.
(not-nil-or-missing? value)
If the value is not nil and not equal to :clova.core/key-not-found? then returns true, otherwise returns false.
If the value is not nil and not equal to :clova.core/key-not-found? then returns true, otherwise returns false.
(realise-args args value)
Given a sequence of arguments (args) will evaluate any argument that is a function by passing in value, or will leave non functional arguments in place.
Given a sequence of arguments (args) will evaluate any argument that is a function by passing in value, or will leave non functional arguments in place.
(to-clj-date value)
(to-clj-date value formatter)
Turns value into a clj-time date.
Turns value into a clj-time date.
(validated-map m {:keys [only-failures?] :or {only-failures? false}} results)
Given a sequence of validation results returns a decorated map with validation results transposed to applicable keys or the original map (m) if results is empty.
Given a sequence of validation results returns a decorated map with validation results transposed to applicable keys or the original map (m) if results is empty.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close