summaryrefslogtreecommitdiff
path: root/prolog/problems/sets/diff_3/en.py
diff options
context:
space:
mode:
Diffstat (limited to 'prolog/problems/sets/diff_3/en.py')
-rw-r--r--prolog/problems/sets/diff_3/en.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/prolog/problems/sets/diff_3/en.py b/prolog/problems/sets/diff_3/en.py
new file mode 100644
index 0000000..a2fc55d
--- /dev/null
+++ b/prolog/problems/sets/diff_3/en.py
@@ -0,0 +1,12 @@
+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 = {}