LinQ also requires support for lambda expressions (closures), though this is not obvious from the previous query example.
LinQ还需要支持lambda表达式(闭包),尽管这一点在前面的查询例子中体现得不是很明显。
As we saw in the examples for lambda functions, one of the most obvious USES for closures is in the few PHP functions that accept a callback function as a parameter.
如在lambda函数的示例中所示,闭包的最明显用法之一是少数php函数接受回调函数作为参数。
The primary rationale for lambda expressions is to have a way to express code as data, so that code literals can be passed to libraries that will invoke them at convenient times.
lambda表达式的基本原理是提供了一种将代码表达为数据的方式,从而可以将代码字面量传递至代码库中,以便在方便的时候随时调用。
So if you demonstrate something by writing an intelligent answer just by outlining it and saying, well, what I would do is I would equate the energy lambda and then solve for lambda, I can see that you know what is going on.
如果你想证明一些东西,通过写下一些很天才的答案,仅仅大致说一下,好的,我想做的是能量相等,然后解出,我能看到你知道怎么做。
应用推荐