我有一个map m ,一个key k 和一个函数 f 。是否可以更简单地重写此代码? (assoc m k (f (get m k)). 最佳答案. 试试clojure.core/update-in (update-in m [k] f)
確定! 回上一頁