Last active
January 28, 2019 12:31
-
-
Save gakuzzzz/cdcedb85a221081a17df6d39dec8f700 to your computer and use it in GitHub Desktop.
MyBiFunc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jp.t2v.lab; | |
import java.util.function.Function; | |
@FunctionalInterface | |
public interface MyBiFunc<T, U, R> extends Function<T, Function<U, R>> { | |
@Override | |
default Function<U, R> apply(T t) { | |
return u -> apply(t, u); | |
} | |
R apply(T t, U u); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment