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
November 1999