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
March 2007