Prolog Language Call a list of goals


Example

To call a list of goals as if it were a conjunction of goals, combine the higher-order predicates call/1 and maplist/2:

?- Gs = [X = a, Y = b], maplist(call, Gs).
Gs = [a=a, b=b],
X = a,
Y = b.