4.30 Finding all Solutions to a Goal
AllApplicationManualNameSummaryHelp

  • 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
Sourcefindall(+Template, :Goal, -Bag, +Tail)
As findall/3, but returns the result as the difference list Bag-Tail. The 3-argument version is defined as
findall(Templ, Goal, Bag) :-
        findall(Templ, Goal, Bag, [])