On Friday, October 17, 2014 1:21:55 PM UTC+2, Jony Hudson wrote: > > Thanks all again for the advice. For the record, I ended up writing the > loop in Java - being constrained on the type of the data (it ultimately > comes from Java code), and not wanting to pay the (newly reduced!) price of > converting to vectorz for just this operation, this seemed like the best > way. > > > Jony >
If the data came from java (presumably as arrays), I would have considered using http://clojuredocs.org/clojure.core/areduce On a side note, not wanting to hijack your thread, I'm wondering if someone interested in summing many numbers in Clojure had considered implementing the https://en.wikipedia.org/wiki/Kahan_summation_algorithm. Best Regards Bernard -- 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.