com.firefly.utils.function.YCombinator Maven / Gradle / Ivy
package com.firefly.utils.function;
/**
* @author Pengtao Qiu
*/
public interface YCombinator {
interface RecursiveFunction extends Func1, F> {
}
static Func1 Y(Func1, Func1> f) {
RecursiveFunction> r = w -> f.call(x -> w.call(w).call(x));
return r.call(r);
}
}