next up previous
Contents Next: butlast (FUNCTION) Up: Appendix: Selected LISP Previous: apply (FUNCTION)

atom (PREDICATE)

Format: (atom <exp>)

Required arguments: 1

<exp> can be any LISP expression

The argument expression is evaluated. If the value returned by this evaluation represents a LISP atom, atom returns T, else it returns NIL. Symbols, numbers and strings are all considered LISP atoms.

Examples:

> (atom 'hello)
T

> (atom "hello")
T

> (atom 4.6434)
T

> (atom '(hello "hello" 4.6434))
NIL



© Colin Allen & Maneesh Dhagat
November 1999