IIRC, you can use transient only with maps and vectors. David
On Sat, Dec 19, 2009 at 8:46 AM, Sean Devlin <francoisdev...@gmail.com>wrote: > Hey, > I was experimenting with transients, and they don't seem to work for > sorted collections: > > user=> (transient (sorted-map 1 2 3 4)) > java.lang.ClassCastException: clojure.lang.PersistentTreeMap cannot be > cast to clojure.lang.IEditableCollection (NO_SOURCE_FILE:0) > > user=> (transient (sorted-set 1 2 3 4)) > java.lang.ClassCastException: clojure.lang.PersistentTreeSet cannot be > cast to clojure.lang.IEditableCollection (NO_SOURCE_FILE:0) > > Is this desired behavior? > > Sean > > -- > 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<clojure%2bunsubscr...@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 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