static IF1 toIF1(fO f) { if (f == null) null; if (f instanceof IF1) ret (IF1) f; if (isString(f)) ret mainFunctionToIF1((S) f); // XXX deprecate ret new IF1() { public O get(O a) { ret callF(f, a); } }; }