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: 2017/07/17 08:08 (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