forall/2
forall(Generator, Test)This predicate is true if, for all solutions of Generator, Test is true (some Prolog compilers already define this or a similar predicate).
forall(+callable, +callable)
- Generator is not a callable term:
type_error(callable, Generator)
- Test is not a callable term:
type_error(callable, Test)
| ?- forall(member(X, [1, 2, 3]), write(X)).