> At the end of the Vectors section I say this:
> "All the code examples provided above for lists also work for vectors."
>
> Do you think I should provide more detail than that?

I missed that sentence. I think it's helpful to know that some
functions return a list type when given a vector, others will maintain
the vector type. This can be important for performance of subsequent
operations.

> > Also, you mention that vectors are "not efficient when new items need
> > to be added or removed quickly", but subvec should perhaps be
> > mentioned as an exception.
>
> Can you elaborate on that? You might be teaching me something new.
>
If I understand correctly, subvec creates a new object that shares
elements with the original vector with no copying.
--~--~---------~--~----~------------~-------~--~----~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to