Dif operator

Description

Implementing \=

Source: The Art of Prolog

Download

Program source code: dif_operator.pl

Listing

/*
   X \= Y :- X and Y are not unifiable.
*/
	:- op(700, xfx, \=).
 
     X \= X :- !, fail.
     X \= Y.
 
%  Program 11.8   Implementing \=

Comments

pl/prolog/pllib/dif_operator.txt · ostatnio zmienione: 2019/06/27 15:50 (edycja zewnętrzna)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0