I suspect the answer will be that I should use atoms (despite the fact that it isn't completely low level) since I see RH uses those in his memoization example, which is pretty much the epitemy of optimizing with a mutating local variable. :-)
On Jul 9, 7:56 pm, Conrad <drc...@gmail.com> wrote: > Hi everyone: > > I'm trying to optimize an inner loop and need a variable that mutates > to make this work. It does NOT need to be a thread-safe variable. > What's the best way to create a "plain ol' mutating variable" in > Clojure? I know I can always use an Atom, but I was wondering if > there's a more low-level way (besides using the java interop, since I > may still want this variable to be dynamically typed.) > > Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---