(->comparator val-fn)Returns a comparator where values returning from a value function are compared against
Returns a comparator where values returning from a value function are compared against
(and-fn pred & more)Higher order and.
Takes any number of predicates and returns a function that takes a value
and returns true if ALL individual predicates return true, else return false.
Higher order `and`. Takes any number of predicates and returns a function that takes a value and returns true if ALL individual predicates return true, else return false.
(any? pred coll)Returns true if any item in coll returns true for pred, otherwise false
Returns true if any item in coll returns true for pred, otherwise false
(apply-when f v)Invokes f when it's truthy
Invokes f when it's truthy
(call f v)Calls the function f with a value v
Calls the function `f` with a value `v`
(compr)(compr f)(compr f g)(compr f g & more)Composes functions left to right, the opposite of comp
Composes functions left to right, the opposite of `comp`
(d# a)Derefs a value if it is derefable
Derefs a value if it is derefable
(if-fn pred then)(if-fn pred then else)Higher-order if function.
Takes a predicate (pred), calling then or (optionally) else based on the predicate.
Returns nil if no else defined.
Higher-order if function. Takes a predicate (`pred`), calling `then` or (optionally) `else` based on the predicate. Returns nil if no `else` defined.
(or-fn pred & more)Higher order or.
Takes any number of predicates and returns a function that takes a value
and returns true if ANY individual predicates return true, else return false.
Higher order `or`. Takes any number of predicates and returns a function that takes a value and returns true if ANY individual predicates return true, else return false.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |