4.30 Finding all Solutions to a Goal
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
Built-in Predicates
Finding all Solutions to a Goal
findall/3
findall/4
findnsols/4
findnsols/5
bagof/3
setof/3
Packages
Availability:
built-in
[ISO]
setof
(
+Template, +Goal, -Set
)
Equivalent to
bagof/3
, but sorts the result using
sort/2
to get a sorted list of alternatives without duplicates.