summaryrefslogtreecommitdiff
path: root/prolog/problems/lists/min_2/en.py
blob: a0a8e7419e7f4d43af592c4d5df8594e84c2d0bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
id = 108
name = 'min/2'
slug = 'find the smallest element'

description = '''\
<p><code>min(L, Min)</code>: <code>Min</code> is the smallest value in the list <code>L</code>.</p>
<pre>
  ?- min([5,4,1,6], M).
    M = 1.
  ?- min([3,2,2], M).
    M = 2.
</pre>'''

hint = {}