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

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