Still trying to understand reducers & transducers. Is the difference between r/folder and r/reducer the parallelization?
Anyone know what this error is about? (r/foldcat (r/map #(apply + %) (r/folder (into [] (range 10000000)) (partition-all 5)))) ArrayIndexOutOfBoundsException 47427 java.util.ArrayList.add (ArrayList.java:459) Is this error to do with partition-all being stateful? This works as expected, with reducer instead of folder: (r/foldcat (r/map #(apply + %) (r/reducer (into [] (range 10000000)) (partition-all 5)))) ; XXX large output Is there some way to express "map over partitions, in parallel, without creating an intermediate collection" with reducers and transducers? -- 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 your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.