(define-ordinal-functions)
Defines functions third, fourth, ..., tenth to get those elements from a collection. Also defines firstv, secondv, ..., tenthv to get elements out of vectors, faster than using first, second, etc.
Defines functions third, fourth, ..., tenth to get those elements from a collection. Also defines firstv, secondv, ..., tenthv to get elements out of vectors, faster than using first, second, etc.
(defprivatedef name deffer)
Defines a private version of deffer
with the name name
.
Defines a private version of `deffer` with the name `name`.
(ignore-exception & forms)
Evaluates forms
and if an exception is thrown, instead return nil
.
Evaluates `forms` and if an exception is thrown, instead return `nil`.
(make-v-and-str-fns exceptions & syms)
Defines v and -str versions of already existing functions in syms
,
like mapv
for map
, that return vectors and strings instead of
seqs. Symbols ending in v or -str can be given in exceptions
(a
collection) to skip defining that function.
Defines v and -str versions of already existing functions in `syms`, like `mapv` for `map`, that return vectors and strings instead of seqs. Symbols ending in v or -str can be given in `exceptions` (a collection) to skip defining that function.
(private-symbol sym)
Adds :private true to the metadata of sym
.
Adds :private true to the metadata of `sym`.
(reversed-reductions base-fn)
Returns a function that is like a reductions
-like base-fn
, but
reduces from right to left.
Returns a function that is like a `reductions`-like `base-fn`, but reduces from right to left.
(unqualify-syms syms code)
Returns code
but where any occurrence of the symbols in syms
has
been unqualified.
Returns `code` but where any occurrence of the symbols in `syms` has been unqualified.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close