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.
- Code: Select all
(defun my-find (lst)
(if (listp (car lst))
(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?