Is there a way in Java8 to use a method reference as a Function object to use its methods, something like:
Function
Stream.of(\"ciao\", \"hola\", \"hello
You could write:
Stream.of("ciao", "hola", "hello").map(String::length).map(n -> n * 2);