Next: mpg-ref-bagof, Previous: mpg-ref-atom_length, Up: mpg-bpr [Contents][Index]
atomic/1 ISOatomic(+Term)
Succeeds if Term is currently instantiated to an atom or a number.
term
| ?- atomic(9).
yes
| ?- atomic(a).
yes
| ?- atomic("a").
no
| ?- assert(foo(1), Ref), atomic(Ref).
no
None.