NumIterableBasics<E extends num> extension

Utility extension methods for Iterables containing nums.

on

Methods

average([num value(E)?]) num?

Available on Iterable<E>, provided by the NumIterableBasics extension

Returns the average of all the values in this iterable.
max([Comparator<E>? compare]) → E?

Available on Iterable<E>, provided by the NumIterableBasics extension

Returns the greatest number in this, or null if this is empty.
min([Comparator<E>? compare]) → E?

Available on Iterable<E>, provided by the NumIterableBasics extension

Returns the least number in this, or null if this is empty.
sum([num addend(E)?]) num

Available on Iterable<E>, provided by the NumIterableBasics extension

Returns the sum of all the values in this iterable.