Hi and Happy New Year to all the Clojure mailing list,

I am am having some trouble with the two classes Cons and PersistentList:

user> (class (conj (map #(+ % 1)  '(1 2 3)) 4))
clojure.lang.Cons
user> (class '(1 2 3 4))
clojure.lang.PersistentList

My problem is that list? returns false for a Cons and true for a
PersistentList.
What can I do to make my Cons a PersistentList, or is there a way to use
another function instead of list? that will return true for both classes?

Many thanks,
Sam

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