summaryrefslogtreecommitdiff
path: root/prolog/problems/lists/memb_2/sl.py
blob: 382a776ce2fb247685792ef1542c845b5403f2c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# coding=utf-8

name = 'memb/2'
slug = 'Preveri (poišči), če je dani element v seznamu'

description = '''\
<p><code>memb(E, L)</code>: <code>E</code> je element seznama <code>L</code>.</p>
<pre>
?- memb(X, [1,2,3]).
  X = 1 ;
  X = 2 ;
  X = 3.
?- memb(1, [3,2,X]).
  X = 1.
</pre>'''

hint = {}