atom?
tests whether the provided forms are atomic
Usage:
(atom? form+) (!atom? form+) (is-atom form)
A form is considered to be atomic if it cannot be further evaluated and would otherwise evaluate to itself.
An Example
(atom? '() :hello "there")
This example will return #t (true) because each value is atomic.
Like most predicates, this function can also be negated by prepending the !
character. This means that all the provided forms must not be atomic.
(!atom? '(+ 1 2 3) [4 5 6])
This example will return #t (true) because compound types such as lists and vectors are not considered to be atomic.