io.jesi.backpack.fn
->comparator
(->comparator val-fn)Returns a comparator where values returning from a value function are compared against
and-fn
(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.
any?
(any? pred coll)Returns true if any item in coll returns true for pred, otherwise false
apply-when
(apply-when f v)Invokes f when it’s truthy
call
(call f v)Calls the function f with a value v
compr
(compr)(compr f)(compr f g)(compr f g & more)Composes functions left to right, the opposite of comp
d#
(d# a)Derefs a value if it is derefable
if-fn
(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.
map-if
(map-if pred f col)noop
or-fn
(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.
p=
(p= & x)Partial =
partial-right
(partial-right f & args)pass
(pass f)pass-if
(pass-if pred f)