Subset predicate

From: B.r.K.o.N.j.A. (thebrkonja_at_inet.hr)
Date: 12/18/03


Date: Thu, 18 Dec 2003 11:41:31 +0100

I have trouble with subset predicate, I have written a predicate which
returns a sublist, for example : [1,2] is a sublist of [1,2,3], or [2,3] is
a sublist of [1,2,3], but I need a predicate which will give me true as well
for [1,3] is a subset of [1,2,3], any ideas?

Thanks,

Vedran



Relevant Pages

  • Re: Subset sum...
    ... Vedran ... >> Thanks, I've written the sum predicate, and it works, but I have trouble ... > Something is a subset of a Set which is union RestOfSet ... > if Something is the empty set ...
    (comp.lang.prolog)
  • Re: max_list/2
    ... In message, wanwan writes ... on the internet. ... take the trouble to explain what this predicate is meant to do. ...
    (comp.lang.prolog)
  • Re: LOGTALK - what to do with multifile
    ... pieces of this predicated are located in separate files. ... dispatch_global/4 predicate, its clauses are defined by the user. ... what's the trouble in finding which files define clauses for ...
    (comp.lang.prolog)