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

name = 'intersect/3'
slug = 'Poišči presek dveh množic'

description = '''\
<p><code>intersect(S1, S2, I)</code>: seznam <code>I</code> vsebuje presek elementov v <code>S1</code> in <code>S2</code>.</p>
<pre>
?- intersect([1,5,6,3,4,2], [8,1,5,9,4,3], I).
  I = [1,5,3,4].
</pre>'''

hint = {}