summaryrefslogtreecommitdiff
path: root/prolog/problems/lists/min_2/en.py
blob: 0e5a9071befe347649a2ec9f9583dffef0f6052a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# coding=utf-8

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 = {}