IterableNum<N extends num> extension

on

Methods

max({required N ifEmpty}) → N
Returns the greater value in this iterable. If the iterable is empty, this function returns the specified ifEmpty parameter.
min({required N ifEmpty}) → N
Returns the lesser value in this iterable. If the iterable is empty, this function returns the specified ifEmpty parameter.
subtract({required N ifEmpty}) → N
Returns the subtraction of all values in this iterable. If the iterable is empty, this function returns the specified ifEmpty parameter.
sum({required N ifEmpty}) → N
Returns the sum of all values in this iterable. If the iterable is empty, this function returns the specified ifEmpty parameter.