java闭包lambda,闭包在groovy vs闭包在java 8(lambda表达式)?
Given doSomething(Function foo) { println foo(2) }Groovy: doSomething( { it*it } as Function )Java: doSomething( (x) -> x*x )Is there any difference between the two?解决方案In Java Lambda Expressions t...