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

id = 101
name = 'descendant/2'
slug = 'the descendant relation'

description = '''\
<p><code>descendant(X, Y)</code>: <code>X</code> is a descendant (child, grandchild,...) of <code>Y</code>.</p>
<pre>
  ?- descendant(patricia, X).
    X = william ;
    X = tina ;
    X = thomas.
</pre>'''

hint = {}