@rimbu/streamReducer (namespace)averageOn this pagetype averageA Reducer that calculates the average of all given numberic input values.exampleconsole.log(Stream.range({ amount: 5 }).reduce(Reducer.average));// => 2Definitionaverage: Reducer<number, number>