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

id = 106
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).
'''