Availability:built-in
[ISO]findall(+Template,
:Goal, -Bag)
findall/3
is equivalent to bagof/3
with all free variables appearing in Goal scoped to
the Goal with an existential (caret) operator (^),
except that bagof/3
fails when Goal has no solutions.