I have just begun to use Java 8 and I am wondering if there is a way to write a method that returns a Function?
Function
Right now I have method like below:
You are missing semi colons:
return (it) -> { return "Hello, world: " + it; };
Although as noted it can be shortened to:
return it -> "Hello, world: " + it;