Isatom Function Example
Details
Action
In MathScript, atoms are the most elementary units of data. A variable is a name that evaluates to itself. Decimal numbers, strings, vectors, matrices, constants, and pointers also evaluate to themselves. These items in the language that evaluate to
themselves are called Atoms. All other items in the language (functions, non-atomic expressions, rational numbers, equations, and Lists) are composite objects, constructed in one way or other, from Lists. It will be useful in this section, therefore, to distinguish between Atoms and Lists.
The atom False plays a unique role. It is the name of the Empty List: list().
Isatom(arg)
returns True if value[arg] is an atom, otherwise it returns the empty list or
value[False].