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

id = 106
group = 'lists'
number = 13
visible = True
facts = None

solution = '''\
del106(X, [X|T], T).
del106(X, [Y|T], [Y|L]) :-
  del106(X, T, L).
insert(X, List, BigList) :-
  del106(X, BigList, List).
'''