Liking cljdoc? Tell your friends :D

io.jesi.backpack.fn


->comparatorclj/s

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

and-fnclj/s

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

any?clj/s

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

apply-whenclj/s

(apply-when f v)

Invokes f when it's truthy

Invokes f when it's truthy
sourceraw docstring

callclj/s

(call f v)

Calls the function f with a value v

Calls the function `f` with a value `v`
sourceraw docstring

comprclj/s

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

d#clj/s

(d# a)

Derefs a value if it is derefable

Derefs a value if it is derefable
sourceraw docstring

if-fnclj/s

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

map-ifclj/s

(map-if pred f col)
source

noopclj/s

source

or-fnclj/s

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

p=clj/s

(p= & x)

Partial =

Partial =
sourceraw docstring

partial-rightclj/s

(partial-right f & args)
source

passclj/s

(pass f)
source

pass-ifclj/s

(pass-if pred f)
source

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

× close