Tagged Questions

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

learn more… | top users | synonyms

2
votes
2answers
55 views

Name for pattern in which actions happen upon completion of a future event / Java class

I have a class currently called Promise that works as follows: It holds a future value It can always accept a subsequent action to take that uses the future value as the parameter When the value is ...
0
votes
1answer
29 views

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?
2
votes
2answers
51 views

Mapping a FunctionalJava Option<Type> with Hibernate

I have a hibernate-mapped Java object, JKL, which is full of a bunch of normal hibernate-mappable fields (like strings and integers). I'm added a new embedded field to it (which lives in the same ...
3
votes
1answer
267 views

Anything in Guava similar to Functional Java's Effect?

I know one of the goals of pure functional programming is to eliminate mutability, and therefore to preclude side-effects. But let's face it, Java is not a functional language even with all of the ...
0
votes
1answer
90 views

functional java - transform by calling a member function

I'm coming at some functional java from a ruby point of view in ruby you can do something like this mapped_array = [1,2,3].map(&:to_s) which evaluates out to transforming (map) the array by ...
3
votes
2answers
124 views

Java FoldMap Lists, or “how to get around the lazy/eager dissonance”

I am porting this package to Java and have gotten stuck trying to get around the lazy/eager dissonance between the two languages. I didn't think it was going to be as severe as it is because the ...
6
votes
3answers
522 views

Is there a good comparison between Functional Java and Guava?

I'd like to use either Functional Java or Guava (or less likely Scala) in a course I'll be teaching. Although there are lots of functional languages that run on the JVM I'd like to stick to something ...
1
vote
2answers
135 views

In FunctionalJava.List, what does “snoc” mean?

FunctionJava's List class has a snoc method that does append: snoc The description is as follows: Appends (snoc) the given element to this list to produce a new list. What does the word "snoc" ...
1
vote
2answers
121 views

Functional Java bind arity-2 Function (F2) to options

I understand the basic bind syntax for Option with functional java as Option.some(2).bind(new F<Integer,Option<Integer>>(){ public Option<Integer>f(Integer i){ return ...
2
votes
3answers
292 views

Where can I find a repository containing functionaljava 3.0?

I would like to use functional Java 3.0 in a maven project. I have been googling a little, but I can't find valid information to include the corresponsding 'dependency' in my pom.xml. Someone ...
9
votes
1answer
404 views

What are your experiences using the functional java project?

I was reading the following question - How safe would it be to use functional-java to add closures to a Java production project? and I had been thinking of using the Functional Java project as well in ...
5
votes
5answers
441 views

How safe would it be to use functional-java to add closures to a Java production project?

I would love to use closures in Java. I have read that they may or may not make it into Java 7. But an open-source project called functional-java has implemented functional features including ...