On Nov 24, 12:41 am, "Kevin Downey" <[EMAIL PROTECTED]> wrote: > I don't think you understand. clojure data structures are IMMUTABLE. > every call to conj, or anyother function returns a "new" object. To > optimize there is sharing of structure.
In the particular case at hand, i.e. calling vec on a seq, there is no structural sharing involved. On the contrary a new Object array of the same length as the seq is created. See RT.seqToArray for details. --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---