I agree. I guess I was specifically thinking of a list of functions where the length of the list, and the functions themselves, are defined at run-time. Which would lead to some nasty code using the threading macros. (Unless someone has an example of this not being the case)
On Wednesday, May 7, 2014 1:00:17 PM UTC-4, Gary Johnson wrote: > > Reduce is indeed a swiss-army knife for functional programming over > sequences. > Of course, in this particular case (i.e., apply a sequence of functions in > order to an initial value), Clojure's threading operators are the idiomatic > way to go. > > (->> 6 (+ 12) (* -1)) > > Cheers, > ~Gary > -- 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.