On Tuesday 16 December 2008 08:03, J. McConnell wrote:
> ...
>
> '(nil) is a list containing the single element nil. nil is no kind of
> list whatsoever. So, (seq? '(nil)) is true, since '(nil) is a list
> and lists are seqs and (seq? nil) is false since nil is not a
> sequence.
>
> The quoted list equivalent of (seq? nil) is not (seq? '(nil)), it's
> (seq? '()) and it rightly returns false:
>
> 1:1 user=> (seq? '())
> false

It is also the case that empty lists are self-evaluating:

user=> ''()
(quote ())

user=> '()
()

user=> ()
()


>...
>
> - J.


Randall Schulz

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