negotiation by failure- list operations
- From: "ne0" <neoeon@xxxxxxx>
- Date: 12 Jun 2005 11:18:35 -0700
hi, what im trying to do is the following:
delete1(X,L1,L2) that uses delete(X,L1,L2) but if X isnt in L1 it
should not throw NO - it should only throw YES
i think its donesimilar to that predicate:
different(X,Y) :- X=Y, !, true.
different(X,Y).
but how do i change my delete1 predicate that it throws YES if X isnt
in L1 ?
Can someone help me ?
.
- Follow-Ups:
- Re: negotiation by failure- list operations
- From: Nameless
- Re: negotiation by failure- list operations
- From: Brian Hulley
- Re: negotiation by failure- list operations
- Prev by Date: Re: cross-module asserting/retracting - is this a good thing?
- Next by Date: Free Prolog++ for Windows ...??
- Previous by thread: cross-module asserting/retracting - is this a good thing?
- Next by thread: Re: negotiation by failure- list operations
- Index(es):
Relevant Pages
|
|