We will simply create an anonymous function, and execute it immediately.
We will simply create an anonymous function, and execute it immediately.
Each chunk is executed as the body of an anonymous function.
Create also the anonymous function.
Lua treats any independent chunk as the body of an anonymous function.Combinations with other parts of speech
If this is not given a name it is referred to as an anonymous function.它的名字是空的-我们创建了一个匿名函数并将其分配给某个变量。
Its name is empty- we created an anonymous function and assigned it to some variable.Lambda表达式”是一个匿名函数,它可以包含表达式和语句,并且可用于创建委托或表达式目录树类型。
A lambda expression simply put is an anonymous function that contains expressions or statements, it can be used to create delegates or expression tree types.然后我们定义了一个匿名函数(一个lambda表达式)赋给类型Action。
We then define an anonymous function delegate(a lambda expression) of type Action.记法\x=gt;val构造了一个匿名函数,它接受一个参数x并返回表达式val。
The notation\x=gt; val constructs an anonymous function which takes one argument, x and returns the expression val.它是一个匿名函数,把它传入times方法,打印出静态句子。
It's an anonymous function that's passed into the times method and prints a static sentence.Julia的-gt;创建一个匿名函数,它并不通过指针访问成员。
Julia's-gt; creates an anonymous function, it does not access a member via a pointer.Lambda表达式”是一个匿名函数,它可以包含表达式和语句,并且可用于创建委托或表达式目录树类型。
The lambda expression is an anonymous function that contains expressions and statements and it can be used to create delegates or expression tree types.可以定义一个匿名函数在MATLAB命令行或在一个函数或脚本。
You can define an anonymous function right at the MATLAB command line or within a function or script.该函数返回一个匿名函数并将其赋值给count变量。
This function returns an anonymous function and assigns it to count variable.下面,我们将利用函数作用域这一特性来创建一个匿名函数(没有名字的函数),并立即调用它。
So, we are going touse this functional scope idea to create an anonymous function(function with no name) and immediately invoke it.Lambda表达式”是一个匿名函数,它可以包含表达式和语句,并且可用于创建委托或表达式树类型。
A lambda expression is an anonymous function that can contain expressions and statements, and can be used to create delegates or expression tree types.我在这里所做的是定义了一个匿名函数,并立即应用它。
What I'm doing there is defining an anonymous function and applying it immediately.需要注意,我们在target变量中存储了一个匿名函数,然后调用了record函数。
Note that we store the anonymous function in the target variable, and then call the record function..它的name属性为空--这里创建了一个匿名函数,并将它赋值给其他变量。
Its name is empty- we created an anonymous function and assigned it to some variable.
You can also assign an anonymous function to a variable:.在Python中,我们使用lambda关键字来声明一个匿名函数,这就是为什么我们将它们称为“lambda函数”。
In Python, we use the lambda keyword to declare an anonymous function, which is why we refer to them as"lambda functions".但任何函数都可以被直接传递,并不需要被“包"在一个匿名函数中。
But any function can be passed directly,without being"wrapped" in an anonymous function.Lambda表达式是一种很简单的方法,去定义一个匿名函数。
A lambda expression is a simple way to define an anonymous function.但我们可以简单地使用一个匿名函数包含所有事物并通过这种方式保护此域。
It is easier to wrap the whole thing in an anonymous function and protect the scope that way.Lambda表达式”是一个匿名函数,它可以包含表达式和语句,并且可用于创建委托或表达式树类型。
A lambda expression is an anonymous function that you can use to create delegates or expression tree types.下面的例子演示了一个叫map的函数如何被定义,而后调用一个匿名函数作为其第一个参数:.
The following example shows the map function being defined andthen called with an anonymous function as its first parameter:.每次遍历一个list时我都会使用一个匿名函数,或复用通用的函数(例如isOdd,(+)或sqrt)。
I could write anonymous functions each time I traverse a list, or I could reuse a well known function(like isOdd,(+) or sqrt).
Create an anonymous profile.