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:
Could anyone please tell me what's wrong?
Thank You
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 there is no list inside my list. Could anyone please tell me what's wrong?
Thank You