title: Java8 method reference used as Function object to combine functions
body: <p>Is there a way in Java8 to use a method reference as a <code>Function</code> object to use its methods, something like:</p>
  
  <pre><code>Stream.of("ciao", "hola", "hello")
      .map(String::length.andThen(n -&gt; n * 2))
  </code></pre>
  
  <p>This question is not related to the <code>Stream</code>, it is used just as example, I would like to have answer about the method reference</p>