Liking cljdoc? Tell your friends :D

ventas.common.utils


bigdec->strclj

(bigdec->str v)
source

deep-mergeclj

(deep-merge & maps)

Like merge, but merges maps recursively. See: https://dev.clojure.org/jira/browse/CLJ-1468

Like merge, but merges maps recursively.
See: https://dev.clojure.org/jira/browse/CLJ-1468
sourceraw docstring

find-firstclj

(find-first pred coll)

Finds the first value from coll that satisfies pred. Returns nil if it doesn't find such a value.

Finds the first value from coll that satisfies pred.
Returns nil if it doesn't find such a value.
sourceraw docstring

find-indexclj

(find-index pred coll)

Returns the index of the first value in coll that satisfies pred

Returns the index of the first value in `coll` that satisfies `pred`
sourceraw docstring

group-by-keywordclj

(group-by-keyword kw coll)

Same as group-by but dissocs the keyword used for grouping the items

Same as group-by but dissocs the keyword used for grouping the items
sourceraw docstring

index-byclj

(index-by keyword coll)

Indexes a collection using the given keyword as key

Indexes a collection using the given keyword as key
sourceraw docstring

into-nclj

(into-n & vs)
source

map-keysclj

(map-keys f m)
source

map-kvclj

(map-kv f m)

Syntax sugar for map->map transformations

Syntax sugar for map->map transformations
sourceraw docstring

map-leavesclj

(map-leaves f v)

Applies f to all 'leaves' (anything that is not sequential or a map)

Applies f to all 'leaves' (anything that is not sequential or a map)
sourceraw docstring

map-valsclj

(map-vals f m)
source

mapmclj

(mapm f coll)
(mapm f c1 c2)
(mapm f c1 c2 c3)
(mapm f c1 c2 c3 & colls)

Like clojure.core/mapv, but creates a map

Like clojure.core/mapv, but creates a map
sourceraw docstring

read-keywordclj

(read-keyword str)
source

remove-indexclj

(remove-index idx coll)
source

remove-nil-valsclj

(remove-nil-vals m)

Removes nil values from a map

Removes nil values from a map
sourceraw docstring

str->bigdecclj

(str->bigdec v)
source

tree-byclj

(tree-by id-key parent-key coll & [parent])

Creates a recursive structure from a flat structure

Creates a recursive structure from a flat structure
sourceraw docstring

update-in-when-someclj

(update-in-when-some m ks f)
source

update-when-someclj

(update-when-some m k f)

Like update but does not do anything if the value does not exist or is nil

Like `update` but does not do anything if the value does not exist or is nil
sourceraw docstring

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

× close