
fj.function.Effect0 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of functionaljava Show documentation
Show all versions of functionaljava Show documentation
Functional Java is an open source library that supports closures for the Java programming language
The newest version!
package fj.function;
import fj.*;
import static fj.Unit.unit;
public interface Effect0 {
void f();
default F0 toF0() {
return () -> {
f();
return unit();
};
}
default TryEffect0 toTryEffect0() {
return () -> f();
}
default Try0 toTry0() {
return () -> {
f();
return unit();
};
}
default P1 toP1() {
return P.lazy(() -> {
f();
return unit();
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy