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

id = 115
number = 22
visible = True
facts = None

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