summaryrefslogtreecommitdiff
path: root/prolog/problems/lists/shiftleft_2/common.py
blob: a8d56a7e33c0588536f82c3121ea8277405a3f30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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).
'''