Logtalk reference manual
Built-in method: findall/3

findall/3

Description

findall(Term, Goal, List)

(see the Prolog ISO standard definition)

Template and modes

findall(@term, +callable, -list)

Errors

(see the Prolog ISO standard)

Examples

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