I've been using Clojure for awhile now and it has never previously occurred to me that you could do:
#(foo %2)
instead of (fn [_ arg2] (foo arg2))
Thanks! #(foo %2)
instead of (fn [_ arg2] (foo arg2))
Thanks! (comp foo second)
Is equivalent to: (fn [[_ x]] (foo x))
Not: (fn [_ x] (foo x))How about:
(comp foo second list)