summaryrefslogtreecommitdiff
path: root/prolog/problems/lists_advanced/min_2/en.py
blob: a286cac6946a0d336766d0642ec1fef4b258fb06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 = {}