如何使用函数更新地图值?

DNN*_*NNX 6 clojure

我有一张地图m,一把钥匙k和一个功能f.是否可以更简单地重写此代码?

(assoc m k (f (get m k))
Run Code Online (Sandbox Code Playgroud)