(! x)
make a data always return itself when applied to anything
make a data always return itself when applied to anything
($ x)
($ x y)
distribution operator, behaves like map function but conserve context ($ inc [1 2]) => [2 3]
distribution operator, behaves like map function but conserve context ($ inc [1 2]) => [2 3]
(& x)
(& x y)
zipping operator (& [inc dec] [0 0]) => [1 -1]
zipping operator (& [inc dec] [0 0]) => [1 -1]
(<< x)
(<< x y)
slurp operator, a bit like merge function (<< [] (list 1 2)) => [1 2] (<< [12 13 14] (list 1 2)) => [1 2 14]
slurp operator, a bit like merge function (<< [] (list 1 2)) => [1 2] (<< [12 13 14] (list 1 2)) => [1 2 14]
(c op & ops)
compose several operators together, handy to operate on nested structures (= ((c $ $) [inc dec] [[1 2] [3 4]]) [[[2 0] [3 1]] [[4 2] [5 3]]])
compose several operators together, handy to operate on nested structures (= ((c $ $) [inc dec] [[1 2] [3 4]]) [[[2 0] [3 1]] [[4 2] [5 3]]])
(conj-op x op)
if x has no op metadata assign given op to it, else conj given op to already present ops
if x has no op metadata assign given op to it, else conj given op to already present ops
(eseq> x & mtags)
given an eseq x, just add ::eseq type tag and other given tags to metadata
given an eseq x, just add ::eseq type tag and other given tags to metadata
(f x)
(f x y)
flipped application operator, like § but args reversed
flipped application operator, like § but args reversed
(o x)
zero operator, return this context without any content
zero operator, return this context without any content
(v x)
get the value of x, for most types it just return x can be used as a realisation operation, kind of like deref
get the value of x, for most types it just return x can be used as a realisation operation, kind of like deref
(zip-eseqs x y)
zip two eseq together taking care of their potential lazyness
zip two eseq together taking care of their potential lazyness
(§ x)
(§ x y)
simple application, base operator (§ inc 1) <=> (inc 1)
simple application, base operator (§ inc 1) <=> (inc 1)
(◊ x)
(◊ x y)
wrapping operator (◊ [] (list 1 2)) => [1 2] (◊ [12 13 14] (list 1 2)) => [1 2]
wrapping operator (◊ [] (list 1 2)) => [1 2] (◊ [12 13 14] (list 1 2)) => [1 2]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close