In functional programming, lambdas are referred to as first-class functions because they can be.
在函数式编程中,lambdas被称为一流的函数因为它们能够。
There's a certain debate that can occur about inheritance: Should inheritance override only base-class functions ?
有一些特定的讨论是针对继承的:是否继承覆盖仅仅是基类的方法?
In this article, I'll continue this tour of concepts by talking about first-class functions, optimizations, and closures.
在本文中,我将继续讨论这些概念,讲解一级函数、优化和闭包。
Specifically, functional programming languages must provide high-order and first-class functions, which this article defines.
特别地,函数式编程语言必须提供高阶和一流的函数,这是本文所定义的。
Since our class functions as a learning community, it is essential that you attend class faithfully and participate regularly.
如实地出席课程和规律的参与活动是必要的。
In functional programming, you have far fewer abstractions, but each one is generic (with specificity added via first-class functions).
在函数式编程中,您拥有更少的抽象,但是每个抽象都具有通用性(通过一等函数添加特性)。
The Permissions configuration class functions as a container for static enum types that configure the permissions in a particular application using EAz.
Permissions配置类可用作在特定的应用程序中使用Eaz配置权限的静态Enum类型的容器。
Predicate (which is the is-factor method I defined earlier in Listing 2 - note the heavy use of first-class functions), returning the Numbers that match.
谓词(我在之前的清单2中定义的is - factor方法—请注意一类函数的大量使用),返回匹配的数字。
Since our class functions as a writing community and the first "public" for your essays and fiction, it is essential that you attend class faithfully.
我们的课程的运作方式是一个小型的写作社群以及属于你们作品的首度公开,你们应该忠实地来上课。
Its applications in constructing nonlinear combining functions are studied and some constructional theorems based on this class functions are obtained.
研究了这类函数在非线性组合函数构造中的应用,得到了几个基于这类函数的构造定理。
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.
您会看到,一旦您习惯了从高阶和一级函数的角度思考,您就能减少(一语双关)代码中无用的部分。
Note: the query optimizer considers using a functional index when the index expression is used in a relational expression or as an argument to one of the operator class functions.
注意:当索引表达式被用于关系表达式,或作为某个操作符类函数的参数时,查询优化器将考虑使用函数索引。
Functional languages rely on first-class functions (functions that can appear anywhere any other language construct can appear) as parameters and return values. Figure 3 illustrates this concept.
函数式语言依赖于一等函数(可在任何其他语言结构可能出现的地方出现的函数)作为参数和返回值。
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.
函数语言结构,如高阶和一级函数,能让我对抽象的理解更进一步,让我更多地将精力放在代码能做什么而不是怎么做 上。
I add a string name and port class variable and then two functions: a constructor and the server.
我添加了一个字符串名称、一个端口类变量,还有两个函数:构造器和服务器。
The point is that each class should implement a cohesive set of related functions.
它的要点是每一个类应该实现一系列紧密相关的功能。
This header file should ideally contain all the class definitions, member functions, and variables.
在理想情况下,头文件应该包含所有类定义、成员函数和变量。
I can now fill the new empty class with attributes such as string and number types (representing the elements of the character), as well as functions common to this class.
我现在能向这新的空类填充属性,诸如字符串和数字类型(代表了角色的成分),以及这个类中常用的函数。
The use cases for class methods that return functions is limited only by your creativity.
用于类方法并返回函数的用例仅利用您的创造力进行限定。
If you paste the harvested class into the same class diagram or into another class diagram that is outside of a blank model, the class attributes and functions are invisible.
如果您将总结的类粘贴到同一个类图,或本空白模型以外另一个类图中时,那么该类的属性和功能将丢失。
Put simply, methods are functions declared within a class.
简单地说,方法是在类中声明的函数。
This utility class can have functions for all such keywords or functions.
这个实用程序类可以包含针对所有这类关键字或函数的函数。
The new method is added to the partial class that contains all of your functions.
新方法则被添加到包含所有函数的局部类。
The same concept can be used with functions, or even class methods, as shown below.
这也适用于函数,甚至是类方法,如下所示。
The operator class is typically a set of functions.
操作符类通常为一组函数。
For example, methods, functions, a class, or a module of complex logic might be identified.
例如,它将bug目标锁定为方法、函数、类或包含复杂逻辑的模块。
This function calls the feedparser.parse function with the test RSS file, outputs the parsed results, and performs some basic checks via the TestCase class assert functions.
这个函数调用feedparser. parse函数,传递测试用的RSS文件,输出解析结果,并通过testcase类的assert函数执行基本的检查统作。
Normalizer: This class provides functions to normalize the output of transliteration function into a composed or decomposed form.
Normalizer:这个类提供一些函数,将音译函数的输出规范化为一种合成或分解格式。
These functions are implemented in the Publisher class.
这些函数是在Publisher类中实现的。
In addition to the expected class editor functions, Rational Web Developer users can view their classes using different views.
除了预期的类编辑器功能,RationalWebDeveloper用户还可以利用不同的视图观看他们的类。
应用推荐