Darwin Help

Back to Index

max

Function max - maximum of numbers or list of numbers

Calling Sequence  max(L1,L2,...)
Parameters
NameTypeDescription

Li {numeric,list(numeric),list(list(numeric))}numbers or list (of lists) of numbers
Return Type  numeric
Synopsis Finds the maximum valued element in L if L is simply a list of numeric elements. If L is a list of lists of numeric, the function effectively flattens this list to a simple list and returns the maximum valued element.
Examples
> max(5, 97, 22, [14,15,16] );
97
> max(2,3,5,7,11,13,17,19);
19
See also avg,   min,   std,   var