AggregateIterable<E> extension

Provides aggregate functions for Iterables.

on

Methods

average(Select<E, num> select) double
Computes the average of all values. Values are created from this iterable's elements using select.
sum<R extends num>(Select<E, num> select, {R? initial}) → R
Computes the sum of all values. Values are created from this iterable's elements using select.