blob: c4bc7e20ab1c6b57c995545fb8ca4f381dd16a2c (
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 = {}
|