Logtalk reference manual
Built-in method: setof/3

setof/3

Description

setof(Term, Goal, List)

(see the Prolog ISO standard definition)

Template and modes

setof(@term, +callable, -list)

Errors

(see the Prolog ISO standard)

Examples

To find all solutions in this:
setof(Term, Goal, List)
To find all solutions in self:
setof(Term, ::Goal, List)
To find all solutions in an object:
setof(Term, Object::Goal, List)