Disjunction

Description

Logical disjunction

Source: The Art of Prolog

Download

Program source code: disjunction.pl

Listing

/*
    X : Y :- X or Y.
*   
*   Note: used ':' instead of ';' as ';' is a system predicate.
*/
	:- op(1100,xfy,[':']).
 
    X : Y :- X.
    X : Y :- Y.
 
%   Program 10.9    Logical disjunction

Comments

pl/prolog/pllib/disjunction.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