Darwin Help

Back to Index

min

Function min - minimum of numbers or list of numbers

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

Li {numeric,list(numeric),list(list(numeric))}numbers or list (of lists) of numbers
Return Type  numeric
Synopsis Finds the minimum 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 minimum valued element.
Examples
> min(5, 97, 22, [14,15,16] );
5
> min(2,3,5,7,11,13,17,19);
2
See also avg,   max,   median,   std,   var