title: closures in groovy vs closures in java 8 (lambda expressions)?
body: <p>Given <code>doSomething(Function foo) { println foo(2) }</code></p>
  
  <p>Groovy: <code>doSomething( { it*it } as Function )</code></p>
  
  <p>Java: <code>doSomething( (x) -&gt; x*x )</code></p>
  
  <p>Is there any difference between the two?</p>