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)
type_error(callable, Generator)
type_error(callable, Test)
| ?- forall(member(X, [1, 2, 3]), write(X)). 123 yes