static double[] mapToDoubleArray(Cl l, IF1 f) { int n = l(l); double[] a = new[l]; Iterator it = iterator(l); for i to n: a[i] = f.get(it.next()); ret a; }