smallest

Definition: object x1 = smallest(sequence set, bool return_index=false)
Description: Returns the smallest element of set.

set: the sequence in which to find the smallest element.
return_index: if false (0), returns s[i], otherwise returns i.

The largest function is identical except that it returns the largest element.
Example:
x = smallest({"this",{3,5,7},9})        -- x is 9
See Also: min