Note that where the final parameter to a method is a closure, Groovy permits that you can remove it from the list of actual parameters and place it immediately after the closing parenthesis.
注意方法的最后一个参数是个闭包,在这个地方Groovy允许把它从实际参数列表中删除,并把它直接放在结束括号后面。
Note that where the final parameter to a method is a closure, Groovy permits that you can remove it from the list of actual parameters and place it immediately after the closing parenthesis.
注意方法的最后一个参数是个闭包,在这个地方Groovy允许把它从实际参数列表中删除,并把它直接放在结束括号后面。
应用推荐