The empty list () is an object, and objects are truthy.
`seq` on any empty collection is defined to return nil. So your definition:
(deftype Foo [] Seqable (seq [this] ()))
should return nil instead of the empty list.
`(next x)` is equivalent to `(seq (rest x))`
-S
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en