AggregateNumberIterable<E extends num> extension

Provides aggregate functions for Iterables of nums.

This is a specialized implementation of AggregateIterable and AggregateComparableIterable that handles double.nan elements properly.

on

Properties

average double
The average of all elements in this iterable, or double.nan if empty.
no setter
max → E?
The maximum element in this iterable or null if empty. Returns double.nan if present.
no setter
min → E?
The minimum element in this iterable or null if empty. Returns double.nan if present.
no setter
sum → E
The sum of all elements in this iterable. Returns double.nan if present.
no setter