Różnice
Różnice między wybraną wersją a wersją aktualną.
|
|
pl:prolog:pllib:family [2019/06/27 15:50] |
pl:prolog:pllib:family [2019/06/27 15:50] (aktualna) |
| ====== Family ====== |
| {{tag>family knowledge_base}} |
| ===== Description ===== |
| A biblical family database. |
| |
| |
| **Source**: The Art of Prolog |
| ===== Download ===== |
| Program source code: {{family.pl}} |
| ===== Listing ===== |
| <code prolog> |
| father(terach,abraham). |
| |
| father(terach,nachor). |
| |
| father(terach,haran). |
| |
| father(abraham,isaac). |
| |
| father(haran,lot). |
| |
| father(haran,milcah). |
| |
| father(haran,yiscah). |
| |
| |
| |
| male(terach). |
| |
| male(abraham). |
| |
| male(nachor). |
| |
| male(haran). |
| |
| male(isaac). |
| |
| male(lot). |
| |
| |
| |
| female(sarah). |
| |
| female(milcah). |
| |
| female(yiscah). |
| |
| |
| |
| mother(sarah,isaac). |
| |
| |
| |
| %Program 1.1: A biblical fa |
| mily database |
| |
| </code> |
| ===== Comments ===== |
| |
| |