它支持闭包(实质上是可以在另一个函数中引用状态的函数)。
It does include support for closures (which are essentially functions that can reference state in another function).
实际上可以使用闭包代替该方法来建立和清除资源。
You could actually use a closure to do the resource setup and cleanup instead.
爱丽丝:嗯,老师,因为只要我眼睛一闭,眼皮儿就把世界上一切东西都遮住了。
Alice: yes, Sir. Because as soon as I shut my eyes, the eyelids cover everything in the world.
在选择访问路径之前,DB 2优化器将sql语句转换成语意上一致的形式,例如使用谓词下推或谓词传递闭包。
Before access path selection, the DB2 optimizer transforms SQL statements into forms that are semantically identical, such as by using predicate pushdown or predicate transitive closure.
在类中定义的闭包基本上与在对象外部定义的闭包相同。
Closures defined within a class are fundamentally the same as those defined outside an object.
闭包本质上是一个函数和其引用的变量的统一定义。
Closures are functions that reference variables from the scope enclosing the function definition.
他补充:“事实上,一旦周身变湿,当毛孔被阻塞,就会有闭汗症产生的危险,导致身体变得更热。
In fact, he added, if you get too wet you risk hidromeiosis, when sweat pores become blocked, which makes you even hotter.
清单4显示了从外部环境导入变量并将其简单地输出到屏幕上的闭包示例。
Listing 4 shows an example of a closure that will import a variable from the outside environment and simply print it out to the screen.
鲍德温街在新西兰南部城市达尼丁郊区一个闭静处,被誉为世界上最陡峭的街道。
Baldwin street, in a quiet suburban part of New Zealand's southern city of Dunedin, is reputed to be the world's steepest street.
“毕加索”字面上看指的是艺术大师毕加索,实际上却和“闭加锁”同音。
The term literally refers to art virtuoso Picasso in Chinese and is pronounced similar to "close and locked" in Chinese.
可以用闭包来表述模型架构上的完整性。
You can use closures to make statements about the architectural integrity of your models.
在本例中,闭包的生命周期实际上比定义闭包的方法长。
In this case, the closure's lifetime will actually be longer than the method that has defined them.
实际上这对任何闭曲线都适用,向外的通量还是面积的两倍。
It is true actually for any closed curve that the flux out of it is going to be twice the area of the region inside.
实际上,对闭源项目也是可行的;唯一的差别是邮件列表要对公众不可见。
Actually, it'd probably work for closed-source projects as well; the only difference in that case is that the mailing list should, of course, not be visible to the public.
但此项用法是在一个闭包里进行的,所以这段代码实际上是在collect方法的上下文中执行的!
But this usage is in a closure, so this code actually executes in the context of the collect method!
例如,迭代器方法collect把闭包应用到集合中的每个元素上,并返回一个带有新值的新集合。
The iterator method collect, for example, applies a closure to every element in a collection and returns a new collection with the new values.
您会回忆起这个系列以前的文章中,闭包一般用于在List和map集合上应用的迭代器方法上。
You'll recall from previous articles in this series that closures are commonly used with iterator methods applied to List and Map collections.
上一个月,在Sand castle的托管问题上出现一些吵闹,这是源于这样的一个闭源工具,却放在开源网站CodePlex上。
Last month there was an uproar over hosting Sandcastle, a closed-source tool, on the open source site CodePlex.
并由此讨论了紧致的非单连通黎曼流形上无穷多的闭测地线存在性问题。
Also, the paper discuss the existence of the infinite closed geodesics of a compact no-simply connected Riemannian manifold.
摘要把无穷可微函数类在角形闭区域上的唯一性结果推广到了多维情形。
The uniqueness theorem of generalized quasi-analyticity of the infinitely differentiable functions in some closed angular domain is extehded to the functions of several complex variables.
彼得:是的,老师。因为我眼睛一闭,眼皮就把世界上所有的东西都遮住了。
Peter: yes, Sir. Because as soon as I shut my eyes, the eyelids cover everything of the world.
在我死的时候,如果女儿还没有结婚,我的眼睛都闭不上。
If I die with my daughter unmarried, I cannot close my eyes.
在闭式循环柴油机配氧反馈控制的基础上采用了神经网络前馈控制策略。
Based on the feedback control, the neural feedforward compensation was applied in oxygen control of closed cycle diesel.
设B是一个复的向量空间,它是由环链在平环上的简单闭曲线生成。
Let B be a complex vector space generated by some simple closed curves in the annulus.
通过巧妙地构造辅助数列,应用致密性定理、柯西收敛准则来证明闭区间上连续函数的介值性定理。
We proved the intermediate value theorem for continuous function at closed interval by constructing auxiliary sequence ingeniously and applying compact theorem as well as Cauchy convergence criterion.
通过巧妙地构造辅助数列,应用致密性定理、柯西收敛准则来证明闭区间上连续函数的介值性定理。
We proved the intermediate value theorem for continuous function at closed interval by constructing auxiliary sequence ingeniously and applying compact theorem as well as Cauchy convergence criterion.
应用推荐