Higher-order functions offer a higher level of abstraction than object-oriented concepts.
高阶函数提供比面向对象概念更高层次的抽象。
The problems amenable to solution by using higher-order functions aren't unique to functional languages.
适合采用高阶函数来解决的问题不仅限于函数式语言中。
By developing utility functions and methods as higher-order functions, you make your applications more robust.
通过将使用函数和方法作为高阶函数进行开发,可使应用程序更加健壮。
Perhaps the most common use of higher-order functions is the lambda expression, which is Lisp's version of a closure.
高阶函数的最常见用法或许是lambda表达式,这是闭包的lisp版。
If you've ever used closures or higher-order functions, you might have a better understanding of the code in Listing 10.
如果使用过高阶函数或闭包,那么可能更容易理解清单10中的代码。
I'll also circle back to some interesting comparisons between closures and higher-order functions in a later installment.
后续内容还会对闭包与高阶函数做一些有趣的对比。
So based on the dynamic typing and higher-order functions, you can introduce arbitrary behavior to your classes at any time.
所以,基于动态类型和高阶函数,您可以在任何时候向类中引入任意的行为。
Arguments passed to higher-order functions, and then passed on as arguments to a closure's use keyword also retain their values.
参数传递给高阶函数,然后作为参数传递给closure的use关键字,仍保持其值。
Functional programming achieves code reuse by abstracting out generic pieces of machinery, customizable via higher-order functions.
函数式编程通过提取通用的功能部分来实现代码重用,可通过高阶函数进行定制。
Using a function as a function argument, or returning a function as a value, elevates this abstraction into the realm of higher-order functions.
将函数用作函数的参数,或将函数作为值返回,这些概念属于高阶函数的领域。
Many of the code examples use higher-order functions to take advantage of specific Saxon-SA extension functions (specifically, the Saxon: function ).
很多示例代码采用了高阶函数以便利用saxon - sa专有的扩展函数(具体而言即saxon: function )。
Chapter 8 is the heart of the book, implementing functions that operate on other functions (higher-order functions, possibly the reason for the title of the book).
第8章是本书的核心,它实现了对其他函数进行操作的函数(高阶函数,这可能就是本书得名的由来)。
These simple list-building instructions form the foundation of recursions, higher-order functions, and even higher-order abstractions like closures and continuations.
这些由列表构建的简单指令构成了递归、高阶函数,甚至是闭包和continuation之类高级抽象的基础。
After becoming comfortable with lambdas and closures, you may find yourself reducing code and creating more readable and reusable code by writing your own higher-order functions.
在适应了lambdas和closures以后,您可能会发现,通过编写您自己的高阶函数您已经减少了代码并创建了更多的可读与可用代码。
With the availability of higher-order functions, the entire problem of determining if a number is perfect or not collapses to a couple of lines of code in Groovy, as shown in Listing 7.
由于高阶函数的可用性,确定数字是否完全的整个问题在Groovy中只需几行代码即可完成,如清单7所示。
A lambda function is a function definition that you use to pass higher-order functions into Lisp functions. For example, the lambda expression in Listing 10 computes the sum of two integers.
lambda函数是用于将高阶函数传入lisp函数的函数定义。
And, as lower-level abstractions such as repository and workspace become common and widely accepted, higher-order functions can be layered on top to simplify the change management process.
并且,随着较作为低级别的抽象,例如存储库和工作空间,变得普通和广泛被接受,较高等级功能可以放在顶端,以简化变更管理过程。
Passionate love is sparked by the reward part of the brain and the cognitive part, which has higher-order cognitive functions, such as those related to body image.
而爱情则是由大脑的奖励区域和认知区域控制的,认知区域具有高级的认知功能,例如识别身体形象。
Functional language constructs such as higher-order and first-class functions allow me to climb one more rung up the abstraction ladder and focus more on what the code does rather than how it does it.
函数语言结构,如高阶和一级函数,能让我对抽象的理解更进一步,让我更多地将精力放在代码能做什么而不是怎么做 上。
You can see that once you become accustomed to thinking in terms of higher-order and first-class functions, you can reduce (pun intended) a lot of noise in your code.
您会看到,一旦您习惯了从高阶和一级函数的角度思考,您就能减少(一语双关)代码中无用的部分。
The BPM approach is characterized by aggregation of services into higher-order business oriented services and functions using SOA-based BPM technologies including WS-BPEL.
BPM方法的特点是,要使用基于SOA的BPM技术(包括WS - BPEL)将服务聚合为面向业务的高阶服务和功能。
So now it's not just that the on-off switch is stuck in off, the brain's no longer capable of engaging in these higher order P-functions.
所以现在看来就不是开关被卡住,大脑已经不再有能力,实行这些高级的人格功能。
This paper studies derivatives of higher order about product of three functions, and obtains a group dependent derivative formulas.
研究了三个函数乘积的高阶导数,得到了一组相应的导数公式。
Its found that the stress functions corresponding to the mirror point of higher order can be determined from the lower order ones by recurrence, which is easy for computer programing.
对应于高阶镜像点的应力函数,可通过递推的方法,从对应于低阶镜像点的应力函数求得,而且也易于计算机编程。
According to this theory, we know that partially connected higher-order neural networks can approximate any continuous functions as fully connected neural networks can do.
根据这个理论,可知稀疏或部分连接的高阶神经网络象全连接的网络一样能够逼近任意连续函数。
This requires accounting functions with higher, in order to timely and effective reflect management activities required financial information.
这就要求企业会计具有更高的职能,才能及时、有效的反映管理活动中所需的财务信息。
The higher-order hierarchical Legendre basis functions based MOM is introduced, and the AIM is employed to accelerate the solving procedure.
文章给出了基于高阶叠层型勒让德基函数的矩量法公式,并引入自适应积分方法来加速其求解过程。
These regions are most commonly linked to higher order functions such as cognition, social behavior, learning and memory.
这些区域与诸如认知、社会行为、学习与记忆等次序功能的关联性是最为常见的形式。
The simulation result shows different model capabilities of these Higher-order Basis Functions and the address calculation method of active basis functions in hidden layer is correct.
仿真结果显示了不同高阶基函数CMAC网络的不同建模能力,证明了中间层作用函数地址的计算方法正确。
The simulation result shows different model capabilities of these Higher-order Basis Functions and the address calculation method of active basis functions in hidden layer is correct.
仿真结果显示了不同高阶基函数CMAC网络的不同建模能力,证明了中间层作用函数地址的计算方法正确。
应用推荐