Liking cljdoc? Tell your friends :D

clova.util


as-seqclj/s

(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.
sourceraw docstring

deep-mergeclj/s

(deep-merge a & maps)
source

func-or-defaultclj/s

(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.
sourceraw docstring

function?clj/s

(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).
sourceraw docstring

map-someclj/s

(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.
sourceraw docstring

missing?clj/s

(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.
sourceraw docstring

not-missing?clj/s

source

not-nil-or-missing?clj/s

(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.
sourceraw docstring

not-nil?clj/s

source

realise-argsclj/s

(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.
sourceraw docstring

to-clj-dateclj/s

(to-clj-date value)
(to-clj-date value formatter)

Turns value into a clj-time date.

Turns value into a clj-time date.
sourceraw docstring

validated-mapclj/s

(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.
sourceraw docstring

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

× close