summaryrefslogtreecommitdiff
path: root/prolog/problems/family_relations/ancestor_2/en.py
blob: b390705afef727a1d269f4dc3f1b01586b72f87f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# coding=utf-8

id = 100
name = 'ancestor/2'
slug = 'the ancestor relation'

description = '''\
<p><code>ancestor(X, Y)</code>: <code>X</code> is an ancestor (parent, grandparent,...) of <code>Y</code>.</p>
<pre>
  ?- ancestor(patricia, X).
    X = john ;
    X = michael ;
    X = michelle.
</pre>'''

hint = {}