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

id = 144
name = 'getdigits/2'
slug = 'remove non-numeric elements from a list'

description = '''\
<p><code>getdigits(L, DL)</code>: the list <code>DL</code> contains the numeric elements of <code>L</code>, in the same order as in the original list.</p>
<pre>
  ?- getdigits([2,3,e,-,4,b], DL).
    DL = [2,3,4].
</pre>'''

hint = {}