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

id = 130
name = 'diff/3'
slug = 'find the difference of two sets'

description = '''\
<p><code>diff(S1, S2, D)</code>: the list <code>D</code> contains all elements of <code>S1</code> that don't appear in <code>S2</code>, with no duplicates.</p>
<pre>
  ?- diff([2,3,5,1,7,9], [3,7,4,5,6], D).
    D = [2,1,9].
</pre>'''

hint = {}