Skip to content

Instantly share code, notes, and snippets.

@gakuzzzz
Last active January 28, 2019 12:31
Show Gist options
  • Save gakuzzzz/cdcedb85a221081a17df6d39dec8f700 to your computer and use it in GitHub Desktop.
Save gakuzzzz/cdcedb85a221081a17df6d39dec8f700 to your computer and use it in GitHub Desktop.
MyBiFunc
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