Fam biblical

Description

Biblical family relationships

Source: The Art of Prolog

Download

Program source code: fam_biblical.pl

Listing

father(abraham,isaac).			
father(haran,lot).			
father(haran,milcah).			
father(haran,yiscah).
 
male(isaac).
male(lot).
 
female(milcah).
female(yiscah).
 
son(X,Y) :- father(Y,X), male(X).
daughter(X,Y) :- father(Y,X), female(X).
 
%Program 1.2: Biblical family relationships

Comments

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