• 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

  • 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

  • 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

  • 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

  • In Listing 8 you avoid the closure itself by adding another function, thereby preventing the leak.

    清单8通过添加另一个函数来避免闭包本身进而阻止泄漏

    youdao

  • The "closure" can be viewed as a temporary object that exists in the function scope.

    闭包可以看成是在function scope中的一个临时对象

    youdao

  • Unfortunately, it will result in the error message shown in Figure 5, because the function declared in the dojo.forEach method call creates a closure that defines this as referring to its own body.

    不幸的是,导致5错误消息因为在dojo. forEach方法调用声明函数创建了一个包,该闭包将this定义引用它本身。

    youdao

  • That is, a closure is an anonymous function that, when created, attaches to itself the value of variables from the scope of the code that created the function.

    就是说closure是个匿名函数,在其创建,将来自创建函数代码范围内变量附加它本身

    youdao

  • After ramp up, NPI project leader will submit project closure report for review with cross function department, then close whole NPI project after approval.

    爬坡量产后,项目团队领导人提交项目结束报告职能部门进行审核,在批准后正式关闭整个产品导入项目。

    youdao

  • The inclusion and equality relations and the closure properties under function composition operator among these classes are completely decided.

    这些之间包含相等关系以及函数复合运算下的封闭性质完全确定

    youdao

  • When you use a closure, remember that the call object of the enclosing function, including all function arguments and local variables, will last as long as the closure does.

    使用包时,记得包含函数调用对象包括所有的函数参数本地变量有跟闭包一样存活时期。

    youdao

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

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

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