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

com.github.akurilov.commons.func.Function2 Maven / Gradle / Ivy

There is a newer version: 2.3.6
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy