Liking cljdoc? Tell your friends :D

org.purefn.kurosawa.transform


deep-mergeclj

(deep-merge & maps)

Intelligently merges nested maps.

Intelligently merges nested maps.
sourceraw docstring

distinct-byclj

(distinct-by f)
(distinct-by f coll)

Like distinct, but calls f on each item to determine the distinct value, while returning the original un-transformed item. Returns a transducer if called without a collection argument.

Like distinct, but calls f on each item to determine the distinct
value, while returning the original un-transformed item. Returns a
transducer if called without a collection argument.
sourceraw docstring

extract-keysclj

(extract-keys map kmap)
(extract-keys map kmap keep)

Like rename-keys, except that it will not include keys not included in the replacement map or the keep vector in the returned map. Takes a map and a map of key to replacement key. Takes an optional third argument, which is a convenience vector of keys to keep without renaming.

(extract-keys {:a 1 :b 2 :c 3} {:b ::b} [:c]) => {::b 2 :c 3}

Like rename-keys, except that it will not include keys not included
in the replacement map or the keep vector in the returned map.
Takes a map and a map of key to replacement key. Takes an optional
third argument, which is a convenience vector of keys to keep
without renaming.

(extract-keys {:a 1 :b 2 :c 3} {:b ::b} [:c])
  => {::b 2 :c 3}
sourceraw docstring

filter-valsclj

(filter-vals pred)
(filter-vals pred m)

Takes a predicate and a map, and returns a map containing only the keys for which (pred val) returns true. Returns a transducer when no input map is provided.

Takes a predicate and a map, and returns a map containing only the
keys for which (pred val) returns true. Returns a transducer when
no input map is provided.
sourceraw docstring

map-valsclj

(map-vals f)
(map-vals f m)

Returns a map consisting of the result of applying f to each value in m. Returns a transducer when no input map is provided.

Returns a map consisting of the result of applying f to each value in
m. Returns a transducer when no input map is provided.
sourceraw docstring

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

× close