negotiation by failure- list operations



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 ?

.



Relevant Pages

  • Re: negotiation by failure- list operations
    ... The problem is still- how to find out that X isnt in L1 and then to ... Brian Hulley schrieb: ... > ne0 wrote: ... >> but how do i change my delete1 predicate that it throws YES if X isnt ...
    (comp.lang.prolog)
  • Re: Airport Improvement Program funding
    ... > Canton, Cleveland Hopkins, Kent State, and Houston Intercontinental. ... And it isnt on the FAA website ... Prev by Date: ...
    (rec.aviation.soaring)
  • Stange Reboot issues
    ... much writing, followed by rebooting. ... which isnt really a solution. ... Prev by Date: ...
    (microsoft.public.windowsxp.perform_maintain)
  • REGARDING ENGINEERING!!!!
    ... that a huge amount of infos!!.. ... isnt it?... ... Prev by Date: ...
    (sci.engr.analysis)
  • Re: help with cabinet identification
    ... > instinct but i know that isnt the place who made it...just lookin for some ... Prev by Date: ...
    (rec.games.video.arcade.collecting)