I know that I can check if the list of lists contains only null lists, such as
CL-USER> (null (find-if (lambda (item) (not (null item))) my-list))
where my-listis a list of lists.
For instance:
CL-USER> (null (find-if (lambda (item) (not (null item))) '(nil (bob) nil)))
NIL
CL-USER> (null (find-if (lambda (item) (not (null item))) '(() () ())))
T
But is there a shorter and easier way to do this in Lisp? If so, how?
source
share