11.3.29 callable/1

Synopsis

callable(+Term)

Succeeds if Term is currently instantiated to an atom or a compound term.

Arguments

Term
term

Examples

     | ?- callable(a).
     
     yes
     | ?- callable(a(1,2,3)).
     
     yes
     | ?- callable([1,2,3]).
     
     yes
     | ?- callable(1.1).
     
     no

See Also

ref-lte-met-typ.


Send feedback on this subject.