Rich has said that there isn't a speed advantage to making sorted versions of transients, so that's why they don't exist. Your example wasn't instantly converted because sorting is a key property of tree maps, and blindly converting might lose real information. I'd recommending building a transient hash set, and converting to a persistent sorted set from the persistent hash set.
On Jul 8, 7:25 am, Moritz Ulrich <[email protected]> wrote: > Why does (transient #{}) works, but transient (sorted-set []) fails > with an exception: > > clojure.lang.PersistentTreeSet cannot be cast to > clojure.lang.IEditableCollection > [Thrown class java.lang.ClassCastException] > > -- > Moritz Ulrich > Programmer, Student, Almost normal Guy > > http://www.google.com/profiles/ulrich.moritz -- 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
