SumExtension<T> extension

on

Methods

sum<TNum extends num>([TNum selector(T)?]) → TNum
Calculates the sum of the elements in an iterable, optionally using selector to obtain the value to be summed.