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