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