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:
- Code: Select all
(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