static L lambdaMapLike mapDoubleArrayToList(IF1 f, double[] l) { if (empty(l)) ret l; int n = l.length; L out = emptyList(n); for i to n: out.set(i, f.get(l[i]); ret out; }