Liking cljdoc? Tell your friends :D

mate.core


comp->clj/smacro

(comp-> & args)

Same as comp but with the arguments in reverse order.

Same as `comp` but with the arguments in reverse order.
sourceraw docstring

group-byclj/s

(group-by kf coll)
(group-by kf vf coll)
(group-by kf vf rf coll)
(group-by kf vf rf init coll)

Same as clojure.core/group-by, but with some handy new arities which apply custom map & reduce operations to the elements grouped together under the same key.

Same as clojure.core/group-by, but with some handy new arities which apply
custom map & reduce operations to the elements grouped together under the same key.
sourceraw docstring

if->clj/smacro

(if-> x test then-form else-form)

If branching threading macro.

If branching threading macro.
sourceraw docstring

impliesclj/smacro

(implies x y)

(implies x y) expands to (or (not x) y) while being more descriptive of the logical intent.

`(implies x y)` expands to `(or (not x) y)` while being more
descriptive of the logical intent.
sourceraw docstring

index-byclj/s

(index-by kf coll)
(index-by kf vf coll)

Returns a hashmap made of [key value] pairs from items in the collection coll where the keys are (kf item) and the values are (vf item). vf defaults to the identify function.

Returns a hashmap made of `[key value]` pairs from items in the collection `coll`
where the keys are `(kf item)` and the values are `(vf item)`.
`vf` defaults to the identify function.
sourceraw docstring

let->clj/smacro

(let-> x bindings body)

Let threading macro.

Let threading macro.
sourceraw docstring

re-find-indexedclj/s≠

clj
(re-find-indexed m)
(re-find-indexed re s)
cljs
(re-find-indexed re s)

Same as re-find, but returns a pair [index match] when there is a match.

Same as re-find, but returns a pair `[index match]` when there is a match.
source (clj)source (cljs)raw docstring

re-groups-indexedclj

(re-groups-indexed m)

Same as re-groups, but returns pair(s) [index group] instead of group(s).

Same as re-groups, but returns pair(s) `[index group]` instead of group(s).
sourceraw docstring

re-with-flagscljs

(re-with-flags re flags)

Returns a new RegEx with additional flags.

Returns a new RegEx with additional flags.
sourceraw docstring

seq-indexedclj/s

(seq-indexed coll)

Returns an indexed sequence from the collection coll.

Returns an indexed sequence from the collection `coll`.
sourceraw docstring

ungroup-keysclj/s

(ungroup-keys m)

From a hashmap where the keys are grouped using sequential collections (lists, vectors ...) or using sets, this function returns a hashmap where those keys are ungrouped.

From a hashmap where the keys are grouped using sequential collections (lists, vectors ...) or using sets,
this function returns a hashmap where those keys are ungrouped.
sourceraw docstring

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

× close