transient collections collect values in an internal (mutable) data structure and periodically add them in batch. So you will typically see the identical value returned for a while, then it will change.
You should *always* use the return value - the same usage pattern as with persistent collections. On Friday, April 22, 2016 at 2:38:14 PM UTC-5, JvJ wrote: > > > While doing operations on transient collections, I've noticed that the > result of assoc! or conj! is always identical to the original structure > (i.e. it satisfies "identical?", and is not merely equivalent). > > Is this always the case, or can the return value of assoc! or conj! > sometimes be a different object? > -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.