atomic/1
atomic(+Term)
atomic(
)
Succeeds if Term is currently instantiated to an atom or a number.
| ?- atomic(9). yes | ?- atomic(a). yes | ?- atomic("a"). no | ?- assert(foo(1), Ref), atomic(Ref). no
ref-lte-met-typ.