On Jan 14, 5:02 pm, Chouser <chou...@gmail.com> wrote:
> On Wed, Jan 14, 2009 at 4:26 PM, Jason Wolfe <jawo...@berkeley.edu> wrote:
>
> > user> (contains? (ancestors (class [1 2 3])) clojure.lang.ISeq)
> > false
>
> Also there's 'isa?':
>
> user=> (isa? (class [1 2 3]) clojure.lang.ISeq)
> false
> user=> (isa? (class (seq [1 2 3])) clojure.lang.ISeq)
> true
>
> And 'instance?':
>
> user=> (instance? clojure.lang.ISeq [1 2 3])
> false
> user=> (instance? clojure.lang.ISeq (seq [1 2 3]))
> true
>
> > But, I agree; the seq/coll distinction can be very confusing at first,
> > especially when faced with seemingly contradictory outputs like
>
> > user> (= '(1) [1])
> > true
>
> > user> (= '() [])
> > false
>
> Hm.  That does seem rather odd.

Fixed - svn 1208.

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