(defn map-values "Like map, but works over the values of a hash map" [f hash] (let [key-vals (map (fn [[key val]] [key (f val)]) hash)] (if (seq key-vals) (apply conj (empty hash) key-vals) hash)))
Comments top
No comments for map-values. Log in to add a comment.