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

id = 144
number = 51
visible = True
facts = None

solution = '''\
getdigits([], []).
getdigits([X|T], [X|NT]) :-
  number(X), !,
  getdigits(T, NT).
getdigits([_|T], NT) :-
  getdigits(T, NT).
'''