Post by DeverLitePost by KennyPost by ssecorp(not (= lst nil))
(/= lst nil)
empty?, list?, nil? does not work either.
do I really have to use (= 0 (length lst))
seems inefficient if the lists can be big.
lst. Or list if you realize you are not doing scheme.
kt
huh?
I think Kenny's point is that you can use the name "list" rather than
"lst", and this will not conflict with the function (named "list")
because, unlike scheme, CL has a separate namespace for functions.
No. Kenny's point is that to test for a not null list you can just
write list. In the same way that in C, to test for a non zero integer
you can just write integer.
And the OP should try reading some initiation book about Common Lisp,
like:
Common Lisp: A Gentle Introduction to Symbolic Computation
http://www-cgi.cs.cmu.edu/afs/cs.cmu.edu/user/dst/www/LispBook/index.html
http://www.cs.cmu.edu/~dst/LispBook/
--
__Pascal Bourguignon__ http://www.informatimago.com/
Kitty like plastic.
Confuses for litter box.
Don't leave tarp around.