On Jun 18, 2010, at 18:48 , pleone wrote:

> I ran this in a slime REPL on AQUAMACS with clojure 1.1. It appears to
> be a bug.  Am I mistaken?
> 
> user> (def conj-test-vector ["1" "2" "3" "4"])
> #'user/conj-test-vector
> user> conj-test-vector
> ["1" "2" "3" "4"]
> user> (conj conj-test-vector "5")
> ["1" "2" "3" "4" "5"]
> user> (conj conj-test-vector ["test"])
> ["1" "2" "3" "4" ["test"]]
> user> (conj conj-test-vector "6")
> ["1" "2" "3" "4" "6"]
I'm not sure what would be a bug it all looks pretty sane to me, conj does not 
change the def'ed object (that is why it does not grow) and conjing another 
vector of cause adds the vector and not it's elements :)


Regards
heinz.

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