IterableNum<N extends num> extension

on

Methods

max({required N ifEmpty}) → N

Available on Iterable<N>, provided by the IterableNum extension

Returns the greater value in this iterable. If the iterable is empty, this function returns the specified ifEmpty parameter.
min({required N ifEmpty}) → N

Available on Iterable<N>, provided by the IterableNum extension

Returns the lesser value in this iterable. If the iterable is empty, this function returns the specified ifEmpty parameter.
subtract({required N ifEmpty}) → N

Available on Iterable<N>, provided by the IterableNum extension

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

Available on Iterable<N>, provided by the IterableNum extension

Returns the sum of all values in this iterable. If the iterable is empty, this function returns the specified ifEmpty parameter.