I need a map function. Is there something like this in Java already?
(For those who wonder: I of course know how to implement this trivial function myself...)
This is another functional lib with which you may use map: http://code.google.com/p/totallylazy/
sequence(1, 2).map(toString); // lazily returns "1", "2"