Skip to content

AtomQ

Tests whether an expression is atomic — i.e. has no parts. Strings and numbers are atoms, lists and function calls are not.

$ wo 'AtomQ[5]'
True
$ wo 'AtomQ["hello"]'
True
$ wo 'AtomQ[{1, 2}]'
False