Top index Wirbel home

::max

max(a, b) - returns the maximum of a and b
max(list(A) alist) - compute the maximum of a list of elements

max(a, b) works for all types that implement the operator <. It returns b if b is less then a, else a.

max(list(A) alist) compares all elements of the list alist and returns the maximum element according to <. alist must not be emtpy or an exception will be raised.

See also

abs, min