• The second parameter is a function closure.

    第二参数一个函数闭包

    youdao

  • It defines a closure called recurse that can be called with only one parameter rather than two.

    定义了名为recurse包,能够使用参数来调用它,不是两个。

    youdao

  • Because it is a Seq, it has a foreach method that takes a closure as a parameter.

    因为Seq,它具有一个foreach方法并将一个闭包作为参数

    youdao

  • 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允许实际参数列表删除把它直接放在结束括号后面。

    youdao

  • The map closure has a parameter f that represents a closure and a parameter list that represents, not surprisingly, a List.

    map参数f代表闭包,还有一个参数list 代表(不要惊讶)List。

    youdao

  • The List referenced as ages is sent the collect() method with the single closure { element -> return element + 1 } as a parameter.

    名为agesList发送给collect()方法使用单个闭包 {element->return element +1 }作为参数

    youdao

  • In classic Groovy, if you declared a parameter to your closure you had to use a | character for a separator.

    经典Groovy中如果声明参数必须|字符作为分隔符。

    youdao

  • In classic Groovy, if you declared a parameter to your closure you had to use a | character for a separator.

    经典Groovy中如果声明参数必须|字符作为分隔符。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定