(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.
(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}
(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}
(transform-keywords t coll)
Recursively transforms all keyword map keys in coll with t.
Recursively transforms all keyword map keys in coll with t.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close