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

id = 144
group = 'license_plates'
number = 51
visible = True
facts = None

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