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表达式的基本原理是提供了一种将代码表达为数据的方式,从而可以将代码字面量传递至代码库中,以便在方便的时候随时调用。
It is a breakthrough comparable to our invention of the lambda sensor for the catalytic converter in 1976.
这是一个可以与我们在1976年发明的用于催化转化器的含氧传感器相媲美的突破。
Lambda functions are handy for a number of instances, most notably for many PHP functions that accept a callback function.
对于大多数实例来说,尤其对于接受回调函数的许多php函数来说,Lambda函数非常方便。
For instance, if your current working directory is ~/jane/projects/lambda, the shorthand ../..
例如,如果您的当前工作目录为 ~/jane/projects/lambda,那么简写..
Moq is a mocking library for .NET designed and developed to utilize .NET 3.5 features, e.g., Linq expression trees and lambda expressions.
Moq是利用诸如Linq表达式树和Lambda表达式等.NET 3.5的特性,为.NET设计和开发的Mocking库。
Because the lambda expression has the right argument and return types, the compiler verifies that it can be converted into a Comparator and generates the appropriate code for doing so.
因为lambda表达式拥有正确的参数和返回类型,编译器将证实可以把这些类型转换成Comparator,并生成完成此操作的相应代码。
Project lambda includes lambda expressions for more concisely encapsulating functional behavior together with platform implementations of concurrent algorithms like filtering or mapping.
Projectlambda包含了lambda表达式,用于实现更加简洁的封装函数行为以及并行算法的平台实现,如过滤和映射等。
If capture of mutable locals were allowed, the platform would need to extend the local variable's lifetime for as long as the dynamic lifetime of any lambda expression that captures it.
如果捕获可变局部变量是允许的行为的话,平台就需要扩展局部变量的生存期,使之与任何捕获该变量的lambda表达式的动态生存期一样长。
For example, can the lambda function in Listing 17 access vs?
例如,清单17中的lambda函数是否可以访问vs ?
The concept of lambda functions is the basis for closures and provides a much-improved way to create functions on the fly vs. the create_function function already in PHP.
lambda函数的概念是闭包的基础,并且提供了一种比PHP中已有的create_function函数改进了很多的动态创建函数的方法。
An expression tree is a data representation of the lambda expression in a form that is easy for you to read and reason about the lambda expression in.
表达式树是lambda表达式的一种数据表示形式,它能使你更方便地读取和推断lambda表达式。
([toStr(e)+'\n' for e in employeeList] uses Jython's list comprehension to turn each result into a line written in slaries.txt with the lambda function toStr.
([toStr(e)+'\n'for ein employeeList]) 通过Jython的列表理解,用lambda 函数 toStr将每个结果变成 slaries.txt中的一行。
For example, the following code declares a Comparator that compares strings by length and USES a lambda expression to define the Comparator:.
例如,下列的代码声明了一个Comparator,该表达式对字符串的长度进行比较,并使用一个lambda表达式来定义Comparator:。
This will let us add lambda-friendly (and potentially parallel-friendly) methods like forEach() to List. By adding an extension method to List for sortBy(), our example now looks like
这种做法允许我们加入lambda友好的(且可能是并行友好的)方法,比如说给List加入forEach()。
A lambda function is a function definition that you use to pass higher-order functions into Lisp functions. For example, the lambda expression in Listing 10 computes the sum of two integers.
lambda函数是用于将高阶函数传入lisp函数的函数定义。
But don't let the complexity of calculus dissuade you from using lambdas: They are really nothing more than anonymous functions. The following function definition, for example, is a lambda.
但是,不要让calculus的复杂性妨碍了您对lambdas的使用:它们也只不过是匿名函数。
A new algorithm for fast integer ambiguity resolution based on LAMBDA and FASF methods is proposed.
基于LAMBDA算法和FASF算法,提出了一种新的整周模糊度快速求解算法。
A damped LAMBDA algorithm is used for single epoch GPS positioning combining the condition that baseline length on vessel is fixed, a new method for attitude determination with GPS is put forward.
在作者提出的GPS单历元阻尼lambda算法的基础上,结合固定边长条件,给出了一种GPS姿态定位的新方法。
Connect the Dewchecker suction tubing to the gas outlet point of the Lambda probe and open the relative cock, switch on the Dewchecker suction pump and draw off the gas for 5 minutes.
连接露点检测机吸管与氧气传感器出气口后,打开相关旋钮,打开露点检测器的抽气泵,抽气5分钟。
Connect the Dewchecker suction tubing to the gas outlet point of the Lambda probe and open the relative cock, switch on the Dewchecker suction pump and draw off the gas for 5 minutes.
连接露点检测机吸管与氧气传感器出气口后,打开相关旋钮,打开露点检测器的抽气泵,抽气5分钟。
应用推荐