RosettaCodeData/Task/Y-combinator/Objective-C/y-combinator-2.m
2015-02-20 00:35:01 -05:00

5 lines
71 B
Objective-C

Func Y(FuncFunc f) {
return ^(int x) {
return f(Y(f))(x);
};
}