summaryrefslogtreecommitdiff
path: root/prolog/problems/lists/min_2/en.py
blob: 2432be2352d19e4f44525992d49fa911dd201f7e (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 = {}