jcurry is a library that extends the main @FunctionalInterface
interfaces defined in Java8.
The main goal is to add in those interfaces the ability to curry parameters into those interfaces,
(changing this way the functional interface it represents).
The entrypoint is the jcurry.util.function.Currying
class, where it is required to decorate the given functional interface, to be able to use the extensions.
jcurry requires no additional libraries, it is completely independent (the only requirement is Java8).
Some of the added functionality are:
- currying;
- flipping input parameters;
- composition (where not already applied by Java8).
<dependency>
<groupId>com.github.adorow</groupId>
<artifactId>jcurry</artifactId>
<version>1.0.1</version>
</dependency>
dependencies {
compile "com.github.adorow:jcurry:1.0.1"
}
- Anderson Dorow ([email protected])