NumIterableBasics<E extends num> extension

Utility extension methods for Iterables containing nums.

on

Methods

average([num value(E)?]) num?
Returns the average of all the values in this iterable.
max([Comparator<E>? compare]) → E?
Returns the greatest number in this, or null if this is empty.
min([Comparator<E>? compare]) → E?
Returns the least number in this, or null if this is empty.
sum([num addend(E)?]) num
Returns the sum of all the values in this iterable.