tests whether the argument is an atom.
atom/1 succeeds if Term is an atom otherwise it fails.
Term term
| atom('this is an atom'). | Succeeds. |
| atom([]). | Succeeds. |
| atom(Var). | Fails. |
| atom([a,t,o,m]). | Fails. |
This predicate is part of the ISO-Prolog Standard.
| scroll to top |
|