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.add(f.get(l[i]); ret out; } static L lambdaMapLike mapDoubleArrayToList(double[] l, IF1 f) { ret mapDoubleArrayToList(f, l); }