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

    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.

    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

  • 本文中,继续讨论这些概念,讲解一级函数优化闭包

    In this article, I'll continue this tour of concepts by talking about first-class functions, optimizations, and closures.

    youdao

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

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

    youdao

  • 我们闭包获取颜色名字传递构造函数存储到对象中。

    We also grab the color and name of the dog, passed in the constructor and stored in the object, within the closure.

    youdao

  • 完全支持,这种语言必须支持运行操纵、调用创建函数,还要支持函数可以捕获创建这些函数环境

    To support closures fully, a language needs to provide support for manipulating, invoking, and creating functions at run time and for functions to capture the environment in which they were created.

    youdao

  • 闭包本质函数引用变量统一定义。

    Closures are functions that reference variables from the scope enclosing the function definition.

    youdao

  • 正如我们反射API能够通过现有函数方法动态创建,从而闭包提供强大的支持

    The reflection API has great support for closures, as we've now seen, in the form of being able to create them from existing functions and methods dynamically.

    youdao

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

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

    youdao

  • 这些由列表构建简单指令构成了递归高阶函数甚至闭包continuation之类高级抽象基础

    These simple list-building instructions form the foundation of recursions, higher-order functions, and even higher-order abstractions like closures and continuations.

    youdao

  • 闭包函数lambda函数绝对不是出现概念它们来自函数编程领域

    The concepts of closures and lambda functions are definitely not new ones; they both come from the functional programming world.

    youdao

  • 一流的方法函数闭包

    First-class methods and functions (closures)

    youdao

  • 闭包可以通过接口传递静态方法构造函数

    Closures can be passed as interface to static methods, constructors.

    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

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

    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
- 来自原声例句
小调查
请问您想要如何调整此模块?

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

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