Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
20 votes
1 answer
14k views

Passing a Scala function to a Java 8 method

The following Scala code works and can be passed to a Java method expecting a function. Is there a cleaner way to do this? Here's my first pass: val plusOne = new java.util.function.Function[Int,...
GlenPeterson's user avatar