When using iterators, it is usually possible to write the program so that the range of code over which an iterator must stay valid is relatively short.
使用迭代器时,通常可以编写程序使得要求迭代器有效的代码范围相对较短。
Using closures and iterators, GroovySql neatly shifts JDBC resource management from you, the developer, to the Groovy framework.
使用闭包和迭代器,GroovySql 干净漂亮地把 JDBC 的资源管理职责从开发人员转移到 Groovy 框架。
Just as iterators are a generalization of Pointers, function objects are a generalization of functions: a function object is anything that you can call using the ordinary function call syntax.
正像iterators是指针的一般化,函数对象是函数的一般化:一个函数对象是你可以使用普通函数调用语法。
应用推荐