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