Also, you can use straight up java as well inside of loops. I, sometimes, will write a static method, dump the clojure data strcuture over to java, mutate like a crazy man, then slap it back into clojure. I find that loop recur are not as elegant as imperative styles of looping(an opinion of course). I think of recursion as a low level operation, it is a outlier in clojure where most of the time we swim in an abstraction bliss. Anyway, I find using pattern matching in conjunction with recursion makes it far more elegant... https://github.com/clojure/core.match
On Friday, March 21, 2014 7:48:24 AM UTC-4, Andy Smith wrote: > > Excellent point... thanks for the insight > > On Thursday, 20 March 2014 20:34:47 UTC, tbc++ wrote: >> >> Not to mention that this isn't local mutation. You are handing the atom >> to a closure that then gets wrapped by lazy-seq and returned. So the atom >> may actually sit around for some time. >> > -- 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.