Functions that are somewhat general purpose.
Functions that are somewhat general purpose.
(apply-pairwise functions & arglists)
(apply-pairwise [inc dec] [1 1] [2 2]) => [ [2 0] [3 1] ] Note that the functions must take only a single argument.
(apply-pairwise [inc dec] [1 1] [2 2]) => [ [2 0] [3 1] ] Note that the functions must take only a single argument.
(def-many-methods name dispatch-vals args & body)
Create multiple multimethods with different dispatch values but the same implementation
Create multiple multimethods with different dispatch values but the same implementation
(macro-for bindings body)
Macroexpands the body once for each of the elements in the right-side argument of the bindings, which should be a seq
Macroexpands the body once for each of the elements in the right-side argument of the bindings, which should be a seq
(map-first f x)
Like map, but applies f to only the first element of the seq
Like map, but applies f to only the first element of the seq
(pop-if pred args)
Extracts optional arg (that we assume is present if the pred is true) from head of args
Extracts optional arg (that we assume is present if the pred is true) from head of args
(rotations coll)
Returns a lazy seq of all rotations of a seq
Returns a lazy seq of all rotations of a seq
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close