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

id = 110
group = 'lists'
number = 17
visible = True
facts = None

solution = '''\
dup([], []).
dup([H|T], [H,H|TT]) :-
  dup(T, TT).
'''