list? -- r7rs Definition type-predicate;
proper-or-empty-list? (from vonuvoli);Procedure variants:
((null) -> (true))
((list-proper) -> (true))
list-proper;true;((list-dotted) -> (false))
list-dotted;false;((list-circular) -> (false))
list-circular;false;((any) -> (false))
scheme:base -- (scheme base);scheme -- (scheme);(list? obj)Returns
#tifobjis a list. Otherwise, it 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
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.
null;true;list-proper;list-dotted;false;list-circular;any;