> Hello everybody, > the following code is not producing what was expected of it in clojure 1.2 > .. has this been fixed the clojure 1.3? > (let [x (transient {})] > > > (dotimes [i 10] > > > (assoc! x i (* i i))) > > > (persistent! x)) > > > > {0 0, 1 1, 2 4, 3 9, 4 16, 5 25, 6 36, 7 49} > I was expecting > {0 0, 1 1, 2 4, 3 9, 4 16, 5 25, 6 36, 7 49, 8 64, 9 81}
I can reproduce it. In fact, it doesn't work for any number greater than 8. Can't believe this, I hope we are doing something wrong. Regards, BG -- Baishampayan Ghose b.ghose at gmail.com -- 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