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

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