atom

(atom term)

The atom function tests if a given term is an atom or list.

The function returns T if term is an atom; otherwise, it returns nil.

Examples

: (atom '(1 2 3))

nil

: (atom 123)

T

: (atom (setq xyz "abc"))

T