Re: Difference between clojure.lang.Cons and clojure.lang.PersistenList

2012-01-09 Thread Cedric Greevey
On Sun, Jan 8, 2012 at 4:11 PM, Samuel Lê wrote: > Yes, seq? works. Thanks for the help! You're welcome. -- 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 a

Re: Difference between clojure.lang.Cons and clojure.lang.PersistenList

2012-01-09 Thread Samuel Lê
Yes, seq? works. Thanks for the help! On Sun, Jan 8, 2012 at 9:03 PM, Cedric Greevey wrote: > On Sun, Jan 8, 2012 at 10:30 AM, Samuel Lê wrote: > > Hi and Happy New Year to all the Clojure mailing list, > > > > I am am having some trouble with the two classes Cons and PersistentList: > > > > us

Re: Difference between clojure.lang.Cons and clojure.lang.PersistenList

2012-01-08 Thread Cedric Greevey
On Sun, Jan 8, 2012 at 10:30 AM, Samuel Lê wrote: > 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

Difference between clojure.lang.Cons and clojure.lang.PersistenList

2012-01-08 Thread Samuel Lê
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 Con