blob: 1f6aba718d7fd6f76cf7b13b00ebc7b704a717e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# coding=utf-8
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 = {}
|