On Wednesday, 5 March 2014 08:19:26 UTC+8, Jarrod Swart wrote: > > > On Monday, March 3, 2014 11:35:58 AM UTC-5, Mikera wrote: >> >> >> Obviously, there are cases where allocating a sequence will be slower >> than iterative techniques. But that's *easy enough to fix by just using >> iterations in those cases*.... use the right tool for the job and all >> that. >> >> > I follow most of this but could you elaborate on what you mean here, I > want to be sure I understand what you mean by "iteration" and how you would > implement such a thing for a performance increase. Do you mean loop/recur? >
Yes - loop/recur is pretty much the fundamental iterative construct in Clojure. From the clojure.org website "recur is the only non-stack-consuming looping construct in Clojure." That doesn't mean you necessarily have to use it directly - various other iterative / looping constructs use it under the hood. Lots of macros actually expand to some sort of loop/recur construct. -- 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/groups/opt_out.