Suppose I have a vector v. I would like to add a new element to v
distinct
from all of the elements of v, with the constraint that I assume
nothing about v
other than it is a vector. (There are cases where it is useful to do
this
with  some algorithms involving reduce, for example.)  One way to do
this is
(conj v v). Is the overhead of doing this in clojure the addition of
a
pointer (of some kind) to v, or is it something else?

Thanks.

F Lengyel

-- 
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

Reply via email to