Don't you need to supply a combiner for fold? /no-experience
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with you
Hi Caleb,
This surprised me as well. It seems that if you try to fold a map, the
function has two arguments:
(r/fold + (r/map (fn [k v] v) {:a 1 :b 2})) ;; works
(r/reduce + (r/map (fn [k v] v) {:a 1 :b 2})) ;; doesn't work
(r/reduce + (r/map (fn [[k v]] v) {:a 1 :b 2})) ;; works
(r/