Liking cljdoc? Tell your friends :D

serverless.utils.map


kv-transform-keywordsclj/s

(kv-transform-keywords kt coll)
(kv-transform-keywords kt vt coll)

Transform a map's keywords and optionally their values as well.

Takes key transform function, value transform function, and a map. If a non-map is passed in, the value is returned.

Transform a map's keywords and optionally their values as well.

Takes key transform function, value transform function, and a map.
If a non-map is passed in, the value is returned.
sourceraw docstring

map->nsmapclj/s

(map->nsmap map ns)

Adds ns to each unqualified keyword in map

Example usage:

(map->nsmap {:x 0 :foo/y 1} "abc") ;; -> {:abc/x 0 :foo/y 1}

Adds ns to each unqualified keyword in map

Example usage:

(map->nsmap {:x 0 :foo/y 1} "abc") ;; -> {:abc/x 0 :foo/y 1}
sourceraw docstring

nsmap->mapclj/s

(nsmap->map map)

Removes ns from each qualified keyword in map

Example usage:

(nsmap->map {:a/x 0}) ;; -> {:x 0}

Removes ns from each qualified keyword in map

Example usage:

(nsmap->map {:a/x 0}) ;; -> {:x 0}
sourceraw docstring

transform-keywordsclj/s

(transform-keywords t coll)

Recursively transforms all keyword map keys in coll with t.

Recursively transforms all keyword map keys in coll with t.
sourceraw docstring

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

× close