min

get minimum element in given collection


Parameters

min collection :block :range

Attributes

indexretrieve index of minimum element

Returns

  • :null
  • :any

Examples

copy
print min [4 2 8 5 1 9] ; 1

Related