On Mar 21, 2012, at 12:47 AM, Leif <leif.poor...@gmail.com> wrote:

> That raises the question "Why doesn't clojure.lang.ITransientCollection 
> extend clojure.lang.IEditableCollection, so the .asTransient method is 
> idempotent?"

'into' ought not work on transients for the same reason that assoc and conj 
don't work on transients.

Idempotence [interpreted as identity over transients] would be even worse; it 
would mean that 'into' is not a pure function.

reduce conj! is a decent replacement.

-- 
Stephen Compall
Greetings from sunny Appleton!

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