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

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

The average of all elements in this iterable, or double.nan if empty.
no setter
max → E?

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

The maximum element in this iterable or null if empty. Returns double.nan if present.
no setter
min → E?

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

The minimum element in this iterable or null if empty. Returns double.nan if present.
no setter
sum → E

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

The sum of all elements in this iterable. Returns double.nan if present.
no setter