averageIterable<I, R> function
Calculate the average value of iterable
.
Implementation
num? averageIterable<I, R>(Iterable<num> iterable) =>
iterable.isEmpty ? null : sumIterable(iterable) / iterable.length;
Calculate the average value of iterable
.
num? averageIterable<I, R>(Iterable<num> iterable) =>
iterable.isEmpty ? null : sumIterable(iterable) / iterable.length;