Download for Windows Premium
Advertising
anonymous function
Definition
function defined without a name, often passed as an argument  ... See more
匿名函数
This is also true of an anonymous function.
匿名函数也是这样的。
You will see this syntax often used when passing an anonymous function as an argument.
在将一个匿名函数作为参数进行传递时,这个语法会经常被用到。
Curious readers will be wondering what makes a functor different from an anonymous function or closure.
好奇的读者会想是什么使仿函数不同于匿名函数或闭包呢?
Finally we can use an anonymous function (as seen above) to handle the request
最后我们可以使用匿名函数 (如上图所示) 来处理该请求
Let's rewrite the map example and have it use an anonymous function
让我们使用匿名函数重写 map 那个例子。
Accessing the $app object inside the anonymous function can be achieved by injecting it as follows
访问匿名函数内部的 $app 对象可以通过注射它,如下所示:
The anonymous function accepts two arguments, x and y, and returns the comparison between them using the built-in function cmp().
匿名函数接受两个变量 x 和 y ,通过内部函数 cmp ( ) 返回两者的比较值,下面的例子将按长度为字符串列表排序:
The code inside the braces to the left of the => symbol identifies the names and types of the arguments; the code to the right represents the implementation of the anonymous function being defined.
=> 字符到左侧花括号之间的代码表示参数的名称和类型,右侧的代码表示定义的匿名函数的实现。
This is a common theme in functional languages: create a high-level abstract function that does one thing, let it take a block of code (an anonymous function) as a parameter, and call that block of code from within the high-level function.
这是函数语言中的公共主题:创建一个只做一件事情的高级抽象函数,让它接受一个代码块(匿名函数)作为参数,并从这个高级函数中调用这个代码块。
An anonymous function is not bound to an identifier (it has no name).
匿名函数没有绑定到标识符(匿名函数没有名字)。
This anonymous function again demonstrates the power of treating functions as first-class citizens, allowing you to genericize code in an entirely new dimension beyond inheritance.
这个匿名函数 再次展示了将函数当作一级公民处理的强大功能,它允许您在继承性以外对代码进行全新地泛化。
This permits changes such as in-place font size and color changes without a page reload. An anonymous function that does not return a value, define a function, etc., can be used to force the script to return an undefined type
可以用这个方法在不刷新页面的情形下修改页面内容,比如字体/颜色等。 以下的匿名函数 可以用来强制脚本返回undenfined类型:
While event listener objects are generally a better way to implement listeners, you can also bind any callable as an event listener. For example if we wanted to put any orders into the log files, we could use a simple anonymous function to do so
事件监听器对象通常是一个实行监听器的好方法。同时你也可以捆绑任何的 callable 作为事件监听器。举例来说如果我们想要放任何订单 到日志文件里面,我们可以用一个简单的匿名函数来做这些:
No results found for this meaning.

Synonyms and analogies of "anonymous function" in English

Word & Expression of the day
Image of the day
vanity table: table with a mirror used for applying makeup and grooming
Reveal the word
Advertising

Results: 31. Exact: 31. Elapsed time: 17 ms.

Word index: 1-300, 301-600, 601-900

Expression index: 1-400, 401-800, 801-1200

Phrase index: 1-400, 401-800, 801-1200