> You nailed it.  It's not about destructuring, it's using doseq to
> "bash in place" a transient collection.  You won't get correct
> results unless you take the return value of 'assoc!' as your new
> collection.  Even though most of the time it will return the same
> transient you passed in with your changes applied to it,
> sometimes it returns a new transient.  By using doseq you're
> losing that returned transient and running into problems.

Ah yes I remember now, the docs state this point clearly. Should have
read the docs more carefully. Thank you.

> You could try using 'reduce' instead of 'doseq' -- I think that
> will point you in the right direction.

> BTW, your example args are vectors not arrays.
Point taken. Thank you once again.

> --Chouser

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