http://clojure.org/transients
mentions that transients are not designed to be bashed in place like mutable 
datastructures. 
The following produces the correct result.

(loop [x (transient {}) i 0]
  (if (< i 10)
       (recur (assoc! x i (* i i)) (inc i))
       (persistent! x)))

-- 
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

Reply via email to