(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.
(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]])
(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
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close