• The second parameter is a function closure.

    第二参数一个函数闭包

    youdao

  • In this case, you used an anonymous inline function, also known as a closure.

    这个案例使用匿名内联函数称为闭包

    youdao

  • For the function, we are once again using the shorthand closure notation.

    对于这个函数我们再次使用了一个简短闭包注释。

    youdao

  • By default, they are passed by value, meaning that if we would update the value passed within the closure function definition, it would not update the outside value.

    默认情况下,它们传递的,意味着如果更新传递到闭包函数定义值,则更新外部值。

    youdao

  • This closed scope is the communication that ties the closure to the calling function and the code that defines it.

    这个闭合作用域闭包调用函数定义代码联系起来的纽带

    youdao

  • In this case the returned function object is a closure which encapsulates some logging code and the data needed to call the original function.

    这种情况返回函数对象就是一个闭包其中封装了一些日志代码最初函数调用需要数据

    youdao

  • A function will run in the closure that defines it unless otherwise specified.

    如果没有指定函数定义闭包运行

    youdao

  • Curious readers will be wondering what makes a functor different from an anonymous function or closure.

    好奇读者是什么使仿函数不同匿名函数闭包呢?

    youdao

  • When an inner function gains and USES access to its outer function's variables it is known as a closure.

    内部函数获得使用外部函数变量时,称其一个闭包

    youdao

  • It ACTS like a macro in this context, where calling the method of function via the closure makes the function call in the context of where it's defined.

    上下文中用作通过闭包调用函数方法定义上下文中执行函数调用

    youdao

  • A Groovy Closure is an anonymous function that can access its enclosing scope, can be called repeatedly at will, and be passed around as it were data.

    Groovy闭包匿名函数访问包含它的范围,可随意被重复调用当作数据到处传递

    youdao

  • Function literals and the related concept of a closure are discussed in the section called "Function literals and Closures" in Chapter 8, Functional Programming in Scala.

    字面函数相关概念第8-scala函数编程》的“字面函数和包”章节讨论

    youdao

  • However, we can set up a closure at the beginning of the function to keep the string from having to be passed on each call.

    不过我们可以函数起始处设置包(closure),使得不再必须一个调用传递那个字符串

    youdao

  • Variables to be imported from the outside environment are specified in the use clause of the closure function definition.

    外部环境导入变量闭包函数定义的use子句中指定的。

    youdao

  • To build a function that USES a closure, you simply use the yield keyword to invoke the closure.

    构建一个使用包的函数,只需要使用yield关键字调用闭包。

    youdao

  • The closure of a peer socket can also be detected with the write API function.

    同样可以writeapi函数来探测对等套接字闭包

    youdao

  • For the error callback function, you pass a simple closure that simply displays the error information.

    如果callback函数失败,传递一个显示失败信息终止参数

    youdao

  • The closure captures the information about the actual Web service method stub to be invoked (the function object called obj) as well as the stream for the log output.

    闭包捕获真正调用Web服务方法存根(称为obj函数对象)以及作为日志输出

    youdao

  • Notice that once again, we used a shorthand closure for the predicate function passed to the filter function.

    再次注意我们传递filter函数断言函数使用一个简短闭包

    youdao

  • The only other important thing to note is the callback function, or, the closure created for the request's onreadystatechange function.

    除此之外,惟一需要注意函数或者请求onreadystatechange函数创建闭包

    youdao

  • Though you can pass another closure to it, instead pass it a reference to another function called addEmployee.

    尽管可以传递一个闭包而不是将其作为一个引用传递给另一个名为addemployee的函数

    youdao

  • Here's another way to look at it: If an object is data with methods that operate on that data, then a closure is a function with data bound to that function.

    另一个角度来看如果object带有运行方法数据那么closure绑定了数据的函数

    youdao

  • You then pass in an anonymous function (closure) to the onEvent property.

    然后一个匿名函数(closure)传入到onevent属性。

    youdao

  • As the above example illustrates, a closure is a function that is "closed over" specified variables.

    正如上面例子说明的,closureclosedover特定变量函数

    youdao

  • A closure "closes around" these references, so the function invocation can safely refer to the variables even when the variables have gone out of scope!

    一个闭包封闭这些引用所以函数调用可以安全引用这些变量即使它们已经超出了函数作用域

    youdao

  • A closure is a function that carries an implicit binding to all the variables referenced within it.

    闭包一个内部引用所有变量进行绑定函数

    youdao

  • They can also introspect into a closure just like a normal function can.

    它们可以普通函数一样内省包中。

    youdao

  • A method or function can communicate with a closure by passing in arguments.

    方法函数通过传入参数通信

    youdao

  • A closure is a function that is evaluated in its own environment, which has one or more bound variables that can be accessed when the function is called.

    自己的环境中执行计算函数一个多个绑定变量可以调用函数访问

    youdao

  • How can I rewrite this so that Closure Compile renames my function?

    如何重写这个这样关闭编译重命名函数吗?

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定