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