// f: func(S) -> S static O funcToAnswerMethod(fO f) { if (f == null) null; ret new O { S answer(S s) { ret strOrNull(callF(f, s)); } }; }