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

id = 113
group = 'lists'
number = 20
visible = True
facts = None

solution = '''\
conc113([], L, L).
conc113([H|T], L2, [H|L]) :-
  conc113(T, L2, L).
shiftleft([H|T], L2) :-
  conc113(T, [H], L2).
'''