Skip to main content

update-keys

functionv1.11

cljs.core/update-keys

Available in:BBCLJCLJS
(update-keys [m f])
m f => {(f k) v ...} Given a map m and a function f of 1-argument, returns a new map whose keys are the result of applying f to the keys of m, mapped to the corresponding values of m. f must return a unique key for each key of m, else the behavior is undefined.

No examples yet. Be the first to add one!