callable/1
callable(+Term)
callable(
)
Succeeds if Term is currently instantiated to an atom or a compound term.
| ?- callable(a). yes | ?- callable(a(1,2,3)). yes | ?- callable([1,2,3]). yes | ?- callable(1.1). no
ref-lte-met-typ.