Whatever happened to the return type of lambda functions?
lambda函数的返回类型怎么处理?
A quick glance at Listing 18 reveals how lambda functions are defined.
清单18 说明如何定义lambda函数。
The idea of lambda functions comes from mathematics work back in the 1930s.
lambda函数的理念源于 20 世纪 30年代的数学研究。
This is where closures step in and take the lambda functions to the next level.
因此出现了闭包并使lambda函数得到增强。
We discussed lambda functions and the advantages that closures have over them.
我们讨论了lambda函数及闭包与这些函数相比的优点。
Lambda functions by themselves don't add much in terms of something we couldn't do before.
lambda函数本身并没有添加以前不能执行的功能。
Lambda functions are handy for a number of instances, most notably for many PHP functions that accept a callback function.
对于大多数实例来说,尤其对于接受回调函数的许多php函数来说,Lambda函数非常方便。
Now that we've seen some historical perspective on where these concepts have come from, let's look at lambda functions in PHP.
现在我们已经了解了这些概念的历史,让我们查看 PHP中的 lambda函数。
The concepts of closures and lambda functions are definitely not new ones; they both come from the functional programming world.
闭包函数和lambda函数绝对不是新出现的概念;它们均来自函数编程领域。
Some of these features—like static assertions—first made their appearance in GCC version 4.3, while lambda functions first appeared with the 4.5 release.
其中一些特性(比如静态断言)是在GCC 4.3 中首次出现的,而lambda函数是在 GCC 4.5 中首次出现的。
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 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函数改进了很多的动态创建函数的方法。
Lambda functions (or "anonymous functions," as they are often referred to) are simply throwaway functions that can be defined at any time and are typically bound to a variable.
lambda函数(或者通常所谓的“匿名函数”)是可以随时定义的简单抛弃型函数,并且通常都与变量绑定。
Closures are like lambda functions, but smarter in the sense that they have the ability to interact with variables from the outside environment of where the closure is defined.
闭包类似于lambda函数,但是在与定义闭包的外部环境中的变量进行交互方面更加智能。
Some of the most significant possible new features include exception handling, extension functions, function pointers, and/or lambda expressions.
一些最重要的新功能可能包括异常处理、扩展函数、函数指针和/或lambda表达式。
Expression closures are a shorthand method of defining simple functions that mimics lambda notation.
表达式闭包是定义简单函数的一种便捷方式,用来模仿lambda符号。
Perhaps the most common use of higher-order functions is the lambda expression, which is Lisp's version of a closure.
高阶函数的最常见用法或许是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 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函数的函数定义。
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函数的函数定义。
应用推荐