Recursive Program to Find Length of a List in LISP
It uses recursion as follows:
1. The length of the null list is 0.
2. The length of a non-null list is one more than the length of its tail.
Program:
(DEFUN LEN(L)
(COND((NULL)0)
(T(+1((LEN(CDR L))))))