Re: How to get a set response interactively

Ross Boylan <[email protected]> Fri, 11 Apr 2014 10:37:38 -0700
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 4/9/2014 9:00 PM, Richard A. O'Keefe wrote:
>> I must say I don't understand why setof and findall behave differently.
> If they didn't, there'd be no point in having both of them,
> would there?
My statement poorly worded; I meant why they behave differently with 
respect to variable bindings.  And I think you answered that: findall 
was discovered to have problems when nested, and the later bagof and 
setof predicates dealt with bindings differently to fix that.

My naive expectation was that setof would operate like findall except 
that it would remove duplicates from the response set.

Ross