Ok. So I have to test if there's a list except for the empty list.
Search found 2 matches
Search found 2 matches • Page 1 of 1
- Sat Mar 18, 2017 4:36 am
- Forum: Homework
- Topic: Exercise from Grahams "Ansi Common Lisp"
- Replies: 3
- Views: 5380
Hello, I'm a LISP-Beginner and I'm working through Paul Grahams book. There is an exercise: Define a function that takes a list as an argument and return true if one of its elements is a list. I tried: (defun my-find (lst) (if (listp (car lst)) t (my-find (cdr lst)))) But it will return true even if...