Applies a transformation to an array of numbers and averages the results
import * as A from "flurp/array";import * as N from "flurp/number";const meanOfSquares = A.meanWith(N.pow(2));meanOfSquares([3, 4, 2, 1]); // 7.5 i.e., (3^2 + 4^2 + 2^2 + 1^2) / 4
Applies a transformation to an array of numbers and averages the results