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