While kicking the tires, I encountered this "behavior": user=> (let [a (atom 0)] {(swap! a inc) 1 (swap! a inc) 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9}) {3 3, 4 4, 5 5, 6 6, 7 7, 8 8, 9 9, 1 2} user=> (let [a (atom 0)] {(swap! a inc) 1 (swap! a inc) 2 3 3 4 4 5 5 6 6 7 7 8 8}) {1 1, 2 2, 3 3, 4 4, 5 5, 6 6, 7 7, 8 8}
Granted, it's not casual Clojure code but it's surprising. Christophe -- Professional: http://cgrand.net/ (fr) On Clojure: http://clj-me.blogspot.com/ (en) --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---