List predicates (continued)
> (listp ’(a b c))
T
> (listp ’x)
NIL
> (consp ’()) ; NIL is not a cons.
NIL
> (listp ’()) ; NIL is a list.
T
> (consp ’(a . b))
T
> (listp ’(a . b)) ;note listp’s limitation.
T
Previous slide
Next slide
Back to first slide
View graphic version