static L listFromFunction(int n, IF1 f) { ret new RandomAccessAbstractList() { public int size() { ret n; } public A get(int i) { ret f.get(i); } }; } static L lambdaMapLike listFromFunction(IF1 f, int n) { ret listFromFunction(n, f); }