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

id = 103
name = 'memb/2'
slug = 'find elements in list'

description = '''\
<p><code>memb(M, L)</code>: <code>M</code> is an element of list <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 = {}