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

id = 110
number = 17
visible = True
facts = None

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