com.github.akurilov.commons.func.Function2 Maven / Gradle / Ivy
package com.github.akurilov.commons.func;
import java.util.function.Function;
@FunctionalInterface
public interface Function2 {
Z apply(final A a, final B b);
static Function partial1(final Function2 f2, final A a) {
return (b) -> f2.apply(a, b);
}
static Function partial2(final Function2 f2, final B b) {
return (a) -> f2.apply(a, b);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy