GitHub - functionaljava/functionaljava: Functional programming in Java
Functional Java is an open source library facilitating functional programming in Java. The library implements numerous basic and advanced programming abstractions that assist composition oriented development. Functional Java also serves as a platform for learning functional programming concepts by introducing these concepts using a familiar language.
The library is intended for use in production applications and is thoroughly tested using the technique of automated specification-based testing with ScalaCheck and Functional Java’s quickcheck module.
Functional Java provides abstractions for the following types:
-
Basic Data Structures - total and partial functions, products, unit, option, unbiased and right biased unions (either and validation), void.
-
Immutable Collections - array, list, vector, stream, set, map, priority queue, finger tree, heterogenous list, difference list.
-
Other Abstractions - monoid, semigroup, natural, random number generator, reader, writer, state, input/output, parser, zipper, specification based testing (quickcheck), actors, optics (lens, prism, fold, traversal and others), concurrency and type conversion.
Downloading
The recommended way to download and use the project is through your build tool.
The Functional Java artifact is published to Maven Central using the group org.functionaljava with three published artifacts:
-
the core library (
functionaljava) -
property based testing (
functionaljava-quickcheck) -
a small amount of Java 8 support (
functionaljava-java-core)
The latest stable version is 5.0. This can be added to your Gradle project by adding the dependencies:
compile "org.functionaljava:functionaljava:5.0" compile "org.functionaljava:functionaljava-quickcheck:5.0" compile "org.functionaljava:functionaljava-java-core:5.0"
and in Maven:
<dependency>
<groupId>org.functionaljava</groupId>
<artifactId>functionaljava</artifactId>
<version>5.0</version>
</dependency>
<dependency>
<groupId>org.functionaljava</groupId>
<artifactId>functionaljava-quickcheck</artifactId>
<version>5.0</version>
</dependency>
<dependency>
<groupId>org.functionaljava</groupId>
<artifactId>functionaljava-java-core</artifactId>
<version>5.0</version>
</dependency>
