ClojureDocs

Nav

Namespaces

Take the 2025 State of Clojure Survey! Help shape the future of Clojure. Take Survey →

update-vals

clojure.core

Available since 1.11 (source)
  • (update-vals m f)
m f => {k (f v) ...}
 Given a map m and a function f of 1-argument, returns a new map where the keys of m
are mapped to result of applying f to the corresponding values of m.