min method

N min({
  1. required N ifEmpty,
})

Returns the lesser value in this iterable. If the iterable is empty, this function returns the specified ifEmpty parameter.

Implementation

N min({
  required N ifEmpty,
}) =>
    isEmpty ? ifEmpty : reduce(math.min);