Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
org.functionaljava:functionaljava
Advanced tools
Functional Java is an open source library that supports closures for the Java programming language
= 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 is compiled with Java 8 targeting Java 7 bytecode. The use of lambdas within the project are back ported with the Retro Lambda library, supporting Java versions 6 to 8.
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
or functionaljava_1.8
if you use Java 8+)functionaljava-java8
)functionaljava-quickcheck
or functionaljava-quickcheck_1.8
if you use Java 8+)4.9
. This can be added to your Gradle project by adding the dependencies:== Building
FunctionalJava uses the Retro Lambda project to backport Java 8 lambdas to Java 6 bytecode. This requires access to both JDK 6 and 8. The build system requires the environment variables JAVA6_HOME
and JAVA8_HOME
to refer to the appropriate directories.
This requires access to Java 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
).
** Functions with arity 0 to 8 that can produce exceptions (fj.Try
).
** Functions with arity 0 to 8 that have a void return (fj.Effect
).
** Functions with arity 0 to 8 that have a void return and can throw an exception (fj.TryEffect
).
** Products with arity 1 to 8 (fj.P
).
** Unit type (fj.Unit
).
** Optional value - type-safe null (fj.data.Option
).
** Disjoint union data type - compositional exception handling (fj.data.Either
).
** Validation - right biased compositional exception handling (fj.data.Validation
).fj.data.Array
).
** Immutable, in-memory singly linked list (fj.data.List
).
** Immutable lazy singly linked list (fj.data.Stream
).
** A package (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.
** Type-safe heterogeneous list (fj.data.hlist
) for lists of elements of differing types without sacrificing type-safety.
** Immutable set implementation using a red/black tree (fj.data.Set
).
** Immutable multi-way tree - aka rose tree (fj.data.Tree
).
** Immutable tree-map using a red/black tree implementation (fj.data.TreeMap
).
** Immutable priority queue using finger trees (fj.data.PriorityQueue
).
** Difference lists, a highly performant list.fj.Monoid
).
** Semigroup (fj.Semigroup
).
** Natural number data type (fj.data.Natural
).
** Random number generator using a linear congruential generator (fj.LcgRng
).
** Reader, Writer and State monads (fj.data.Reader
,fj.data.Writer
, fj.data.State
).
** Input/Output monad for abstracting IO (fj.IO
).
** Monadic parser combinators for writing parsers by combining smaller parsers using composition.
** Conversion of data types to/from standard Java types.
** Conversion between FunctionalJava and Java 8 specific types.
** Configurable equality and hash-code for HashMap and HashSet.
** Zipper implementations for streams and trees.
** Automated specification-based testing framework (fj.test
).
** Fully operational Actors for parallel computations (fj.control.parallel
) and layered abstractions such as parallel-map, map-reduce, parallel-zip.
** Optics for updating immutable data including lens, prism, iso, optional, traversal, getter, fold and setter. Inspired by the Scala Monocle library (https://github.com/julien-truffaut/Monocle) and the Haskell lens library (https://github.com/ekmett/lens).
** Void, a logically uninhabited type.== 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 etc/release-notes.
FAQs
Functional Java is an open source library that supports closures for the Java programming language
We found that org.functionaljava:functionaljava demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.