AggregateIterable<E> extension

Provides aggregate functions for Iterables.

on

Methods

average(Select<E, num> select) double

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

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

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

Computes the sum of all values. Values are created from this iterable's elements using select.