Questions tagged [functional-java]

Functional Java is is an open source library to learn and implement functional programming concepts in Java.

From the functional Java website: Functional Java is an open source library that seeks to improve the experience of using the Java programming language in a production environment.

The library implements several advanced programming concepts that assist in achieving composition-oriented development. Functional Java is written using vanilla Java 1.5 syntax and requires no external supporting libraries. The JAR file will work with your Java 1.5 project without any additional effort. Functional Java also serves as a platform for learning functional programming concepts by introducing these concepts using a familiar language.

Functional Java's code is now hosted on github

48 questions
0
votes
2 answers

FunctionalJava app throws StackOverflowError with Stream in stack trace

FunctionalJava app throws StackOverflowError with Stream in stack trace, but the app doesn't (seemingly) use stream. What could be the cause?
ron
  • 9,262
  • 4
  • 40
  • 73
-1
votes
2 answers

How to check if all strings in an array start with upper case letter using forAll?

If I have an array of names, how do I check if they all start with an upper case letter using forall (or something else functional)? String[] names = {"Linda", "Peter", "Carol", "Paul"}; names.forall(name -> Character.isUpperCase(name.charAt(0)));…
s.r.y.
  • 11
  • 1
-2
votes
2 answers

Converting to functional Java style

How would one re-write the following in proper Java 8 functional style using filter, collector, etc: private BigInteger calculateProduct(char[] letters) { int OFFSET = 65; BigInteger[] bigPrimes = Arrays.stream( new int[] { 2,…
1 2 3
4