All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.firefly.utils.function.YCombinator Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy