ClojureDocs

导航

命名空间

update-vals

clojure.core

自 1.11 起可用 (源代码)
  • (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.