0 votes
in Prolog by
Explain What Is The Difference Between Bagof/3 And Setof/3 Predicate In Prolog?

1 Answer

0 votes
by
Setof/3 is similar to bagof/3 and the difference between is that bagof/3 leaves all repeated solutions while setof/3 removes them.
...