IterableSumBy<E> extension

on

Methods

sumBy<T extends num>(T selector(E element)) → T

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

Returns the sum of all values produced by selector function applied to each element in the collection.