Liking cljdoc? Tell your friends :D

clojurewerkz.support.core


assoc-withclj

(assoc-with f m k v)
(assoc-with f m k v & kvs)

Like clojure.core/assoc but new value is calculated using a function of two arguments: old value and new value. Similar to clojure.core/merge-with.

Like clojure.core/assoc but new value is calculated using a function of two arguments: old value and new value.
Similar to clojure.core/merge-with.
sourceraw docstring

map->pairsclj

(map->pairs m)

Converts a map into a vector of pairs (e.g. [[:a 10] [:b 20]])

Converts a map into a vector of pairs (e.g. [[:a 10] [:b 20]])
sourceraw docstring

pairs->mapclj

(pairs->map xs)

Converts a sequence of pairs (e.g. [:a 10]) into a map

Converts a sequence of pairs (e.g. [:a 10]) into a map
sourceraw docstring

transform-matching-keysclj

(transform-matching-keys f m pattern)

Applies f to keys of map m that match given regular expression pattern

Applies f to keys of map m that match given regular expression pattern
sourceraw docstring

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

× close