Liking cljdoc? Tell your friends :D

facets.datac


!clj

(! x)

make a data always return itself when applied to anything

make a data always return itself when applied to anything
sourceraw docstring

$clj

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

$$clj

source

$&clj

source

$fclj

source

&clj

(& x)
(& x y)

zipping operator (& [inc dec] [0 0]) => [1 -1]

zipping operator
(& [inc dec] [0 0]) => [1 -1]
sourceraw docstring

&$clj

source

&&clj

source

&fclj

source

<<clj

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

cclj

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

clear-opclj

(clear-op x)

clear the op metadata

clear the op metadata
sourceraw docstring

conj-opclj

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

cr>clj

(cr> x)
source

eseqclj

(eseq x)
source

eseq->hmclj

(eseq->hm x)

convert an eseq to hashmap

convert an eseq to hashmap
sourceraw docstring

eseq->seqclj

source

eseq->vecclj

(eseq->vec x)

convert an eseq to vector

convert an eseq to vector
sourceraw docstring

eseq>clj

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

fclj

(f x)
(f x y)

flipped application operator, like § but args reversed

flipped application operator,
like § but args reversed
sourceraw docstring

f$clj

source

f&clj

source

ffclj

source

juxt*clj

(juxt* xs)
source

mentryclj

(mentry k v)
source

oclj

(o x)

zero operator, return this context without any content

zero operator, return this context without any content
sourceraw docstring

r>clj

(r> x)
source

s>clj

(s> x)
source

vclj

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

zip-eseqsclj

(zip-eseqs x y)

zip two eseq together taking care of their potential lazyness

zip two eseq together taking care of their potential lazyness
sourceraw docstring

§clj

(§ x)
(§ x y)

simple application, base operator (§ inc 1) <=> (inc 1)

simple application, base operator
(§ inc 1) <=> (inc 1)
sourceraw docstring

§$clj

source

§&clj

source

§fclj

source

clj

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

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

× close