next up previous
Contents Next: mapcar (FUNCTION) Up: Appendix: Selected Lisp Previous: list (FUNCTION)

listp (PREDICATE)

Format: (listp <exp> )

Required arguments: 1

<exp> : any Lisp expression.

Returns T if <exp> is of the data type list; NIL otherwise.

Examples:

> (listp '(a s d f))
T

> (listp 3)
NIL

> (listp (cons '1 '(2 3 4)))
T



© Colin Allen & Maneesh Dhagat
March 2007