Hi,
recently I discovered the following behaviour of transient hash-maps
which seems a bit odd to me:
user> (def thm (transient {}))
#'user/thm
user> (dotimes [i 10]
(assoc! thm i i))
nil
user> (count thm)
8
user> (persistent! thm)
{0 0, 1 1, 2 2, 3 3, 4 4, 5 5, 6 6, 7 7}
The same happens if i goes up to 100, 1000, ... Is this a bug or is
this a fundamental misconception of mine?
Daniel
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en