summaryrefslogtreecommitdiff
path: root/prolog/problems/lists/memb_2/common.py
blob: 9e8b58efeb460dd16b9d23de6f38f9d7b3ce08c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# coding=utf-8

id = 103
group = 'lists'
number = 10
visible = True
facts = None

solution = '''\
memb(X, [X|_]).
memb(X, [_|T]) :-
  memb(X, T).
'''