Please add functionaljava to portage. From the homepage: 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 backported with the Retro Lambda library, supporting Java versions 5 to 8 and beyond. Features: 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). Immutable Collections - array, list, vector, stream, set, map, finger tree, heterogenous list. Other Abstractions - monoid, semigroup, natural, random number generator, reader, writer, state, input/output, parser, zipper, specification based testing, actors, concurrency, optics (lens, prism, fold, traversal and others) and type conversion. Reproducible: Always
Java 8 supports functional programming out of the box. Is this library an attempt to reinvent the wheel yet again?
Please reopen and talk us through why you need this package in Portage.
This library is much older than Java 8. So the answer is no, it is not trying to reinvent the wheel. What Java 8 offers are basically lambda expressions an streams. It still misses functional data structures and immutable collections, among other abstractions common in functional programming. This library complements Java 8 with these missing pieces. Functional Java facilitates the development of applications under the functional paradigm. It is needed if the programmer chooses to use the library in his applications. Currently I am just trying it and I have not yet decided if I will use it in my project. I am also considering another library called javaslang. If the package would be difficult to be maintained, then you can leave this issue closed for now. Later on it can be reopened if desired.