Check this out: http://clojure.org/Transients
On Apr 29, 10:54 am, Nathan Sorenson <n...@sfu.ca> wrote: > (transient (subvec [1 2 3 4 5] 0 2)) fails with a class cast > exception. Is this expected/unavoidable? How do I know whether the > vectors I'm passed are regular vectors or come via subvec? > > I'm assuming I lose all the performance benefits of subvec if I > defensively pour all vectors into a new vector before calling > transient? > > I'm on clojure 1.3.0-alpha4 -- 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