Ceylon includes the functional style of programming called first-order functions.
Ceylon包含称为一阶函数的函数式编码样式。
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.
后续内容还会对闭包与高阶函数做一些有趣的对比。
These regions are most commonly linked to higher order functions such as cognition, social behavior, learning and memory.
这些区域与诸如认知、社会行为、学习与记忆等次序功能的关联性是最为常见的形式。
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所示。
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.
并且,随着较作为低级别的抽象,例如存储库和工作空间,变得普通和广泛被接受,较高等级功能可以放在顶端,以简化变更管理过程。
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函数的函数定义。
The engineers at the Massachusetts Institute of Technology have taken it a step further changing the actual composition of plants in order to get them to perform diverse, even unusual functions.
麻省理工学院的工程师们更进一步地改变了植物的实际成分,以使它们发挥不同寻常的功能。
In order to understand ancient Egyptian art, it is vital to know as much as possible of the elite Egyptians' view of the world and the functions and contexts of the art produced for them.
为了理解古埃及艺术,尽可能多地了解埃及精英的世界观以及为他们所创造的艺术的功能和背景是至关重要的。
In many organizations, individuals and groups need to access enterprise data to make business decisions, as well as automate their business functions in order to be productive.
在许多的公司内,个人和组织需要评价企业数据以作出商业决策,并自动化一些业务功能以提高生产效率。
This way you add server-side code to all client-side validation functions in order to check conditions and to show messages.
在这种方法中,您将把服务器端代码添加到所有客户端验证函数中,以检查条件并显示消息。
Applications may be written in-house, acquired through a merger or acquisition, or purchased as packaged applications for key functions ranging from order entry to business Intelligence.
应用程序可能是内部编写的、通过合并或收购而获取的,或者是作为打包应用程序而购买的,并用于从定单录入到业务智能的重要功能。
Customer service must be able to interface with almost all the functions mentioned in order to help gamers with specific problems.
客户服务必须与前面提到的几乎所有功能联系在一起,从而帮助玩家解决问题。
XMLAGG functions use the ORDER BY clause to sort the elements within the group.
xmlagg函数使用ORDERBY子句对组内元素进行排序。
The functions are listed in order of execution.
函数按执行顺序排列。
Notice that you access the Order and Iterate functions through the LineItems.
注意,您可以通过LineItems访问订单和遍历功能。
Notice that you access the Order and Iterate functions through the LineItems.
注意,您可以通过LineItems访问订单和遍历功能。
应用推荐