> conj sounds like 'append' to me which I have no idea about the
> performance characteristics in clojure(it is a no-no in F#, Haskell ++
> is better but would grow the stack).

conj is not the same as append; it will insert the new element in the
smart (most efficient) way. For instance:
user> (conj  '(1 2 3) 0)
(0 1 2 3)
user> (conj [1 2 3] 0)
[1 2 3 0]

There is no performance hit from using conj to insert at the end of a vector.

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