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

fj.function.Effect2 Maven / Gradle / Ivy

Go to download

Functional Java is an open source library that supports closures for the Java programming language

The newest version!
package fj.function;

import fj.F2;
import fj.Unit;

import java.util.function.BiConsumer;

import static fj.Unit.unit;

public interface Effect2 extends BiConsumer {

	void f(A a, B b);

	default void accept(A a, B b) {
		f(a, b);
	}

	default F2 toF2() {
		return (a, b) -> {
			f(a, b);
			return unit();
		};
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy