Documentation Prolog Predicate Reference builtin call/5

call/5

Invoke a callable term as a goal with four extra arguments.

Description

call( +callable_term, +term, +term, +term, +term )

call(Goal, ExtraArg, ExtraArg1, ExtraArg2, ExtraArg3) is true if and only if Goal represents a goal which is true after appending ExtraArg, ExtraArg1, ExtraArg2 and ExtraArg3 to its list of arguments.

Implementation