Functional programming in Java
= Functional Java
image:https://travis-ci.org/functionaljava/functionaljava.svg?branch=master[“Build Status”, link=“https://app.travis-ci.com/github/functionaljava/functionaljava”]
image:https://codecov.io/gh/functionaljava/functionaljava/branch/master/graph/badge.svg[“Code Coverage”, link=“https://codecov.io/gh/functionaljava/functionaljava”]
image:https://badges.gitter.im/functionaljava/functionaljava.svg[link=“https://gitter.im/functionaljava/functionaljava?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge”]
image::http://www.functionaljava.org/img/logo-600x144.png[]
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:
== URLs
Important URLs for the project are:
== 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:
functionaljava
)functionaljava-quickcheck
)functionaljava-java-core
)5.0
. This can be added to your Gradle project by adding the dependencies:== Building
This requires access to Java 8 and will download the Gradle build tool and necessary dependencies and build FunctionalJava.
== Features
A more complete description of the features mentioned above are:
fj.F
).fj.Try
).fj.Effect
).fj.TryEffect
).fj.P
).fj.Unit
).fj.data.Option
).fj.data.Either
).fj.data.Validation
).fj.data.Array
).fj.data.List
).fj.data.Stream
).fj.data.fingertrees
) providing 2-3 finger trees for a functional representation of persistent sequences, supporting access to the ends in amortized O(1) time.fj.data.hlist
) for lists of elements of differing types without sacrificing type-safety.fj.data.Set
).fj.data.Tree
).fj.data.TreeMap
).fj.data.PriorityQueue
).fj.Monoid
).fj.Semigroup
).fj.data.Natural
).fj.LcgRng
).fj.data.Reader
,fj.data.Writer
, fj.data.State
).fj.IO
).fj.test
).fj.control.parallel
) and layered abstractions such as parallel-map, map-reduce, parallel-zip.== License
link:etc/LICENCE[The Functional Java license] uses the BSD 3 license (3-clause license) available at https://en.wikipedia.org/wiki/BSD_licenses[].
== Release Notes
For release notes for each version, see the directory link:etc/release-notes.