chickadee » scheme » list?

list? objprocedure

Returns #t if obj is a list, otherwise returns #f. By definition, all lists have finite length and are terminated by the empty list.

(list? '(a b c))             ===>  #t
(list? '())                  ===>  #t
(list? '(a . b))             ===>  #f
(let ((x (list 'a)))
  (set-cdr! x x)
  (list? x))                 ===>  #f