RU beehive logo promo banner for Computing & Info Sciences
ITEC 380
2024spring
ibarland

Prolog: recursive relations

We will again (in class) use swi-prolog.org's online interpreter. If you're interested in a different explanation/view, here is another prolog tutorial: www.doc.gold.ac.uk/~mas02gw/prolog_tutorial/prologpages/

You can also run /usr/local/bin/xsb from rucs.
In XSB, you can load a file family.pl from the xsb prompt, by typing: [family].

warning: Don't include spaces or hyphens in your filename. xsb interprets hyphens as subtraction, spaces as a list with two objects, and gives a syntax error.

We will use family-before.pl for the following (resulting in family-after.pl):
logo for creative commons by-attribution license
This page licensed CC-BY 4.0 Ian Barland
Page last generated
Please mail any suggestions
(incl. typos, broken links)
to ibarlandradford.edu
Rendered by Racket.