That's odd. Might you have uncovered a bug regarding:
user=> (class {1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9}) clojure.lang.PersistentHashMap user=> (class {1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8}) clojure.lang.PersistentArrayMap While with the atom code we have: user=> (class (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})) clojure.lang.PersistentArrayMap user=> (class (let [a (atom 0)] {(swap! a inc) 1 (swap! a inc) 2 3 3 4 4 5 5 6 6 7 7 8 8})) clojure.lang.PersistentArrayMap On Tue, Feb 17, 2009 at 8:03 PM, Christophe Grand <christo...@cgrand.net> wrote: > > 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) > > > > > > -- Venlig hilsen / Kind regards, Christian Vest Hansen. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---