Guest User

Untitled

a guest
Jun 25th, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. ;; ardumont's solution to Merge with a Function
  2. ;; https://4clojure.com/problem/69
  3.  
  4. #(reduce (fn [a [k v]] (assoc a k (if (a k) (% (a k) v) v))) %2 (apply merge %&))
Advertisement
Add Comment
Please, Sign In to add comment