summaryrefslogtreecommitdiff
path: root/prolog/problems/lists/max_2/en.py
blob: dfb4d6024838b85c88012ce09ffc416d75219e60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
id = 109
name = 'max/2'
slug = 'find the largest element in list'

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

hint = {}