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

id = 115
group = 'lists'
number = 22
visible = True
facts = None

solution = '''\
divide([], [], []).
divide([X], [X], []).
divide([H1,H2|T], [H1|L1], [H2|L2]) :-
  divide(T, L1, L2).
'''