NumericIterableExt<E extends num> extension
Extensions to numeric iterables.
- on
-
- Iterable<
E> ?
- Iterable<
Methods
-
average(
) → double - Returns an average value of elements in the collection, double.nan if empty.
-
max(
) → E? -
Returns the largest element or
null
if there are no elements. -
min(
) → E? -
Returns the smallest element or
null
if there are no elements. -
sum(
) → E - Returns the sum of all elements in the collection.