Code: Select all
(consp (cons 1 1))
Code: Select all
(listp (cons 1 1))
Code: Select all
(consp (list 1 1))
Code: Select all
(listp (list 1 1))
Code: Select all
(nth 1 (cons 1 1))
Code: Select all
(consp (cons 1 1))
Code: Select all
(listp (cons 1 1))
Code: Select all
(consp (list 1 1))
Code: Select all
(listp (list 1 1))
Code: Select all
(nth 1 (cons 1 1))
Code: Select all
(defun true-list-p (list)
(cond ((null list) t)
((consp list) (true-list-p (cdr list)))
(t nil)))