最重要的是,您创建了一些通用函数用于处理任意数量的竞争者。
Most significantly, you created generic functions that can handle any number of contestants.
通用函数的概念(尤其是断言分派函数的思想)最初可能有点难以理解。
The concept of generic functions — especially the wild idea of predicatively dispatched functions — can be a little hard to understand at first.
Common:Firefox 3.0实现了通用函数的基本集合。
Common: Firefox 3.0 implements the basic set of general-purpose functions.
splitter基本上类似于全局通用函数,但其对范围的控制更好。
TextSplitter.splitter is basically similar to a global utility function, but with somewhat better control of scope.
您还可以声明探针可以调用的函数,尤其是希望供多个探针调用的通用函数。
You can also declare functions that probes can call, which is perfect for common functions for which you'd like to serve multiple probes.
socket层是一个协议无关接口,它提供了一组通用函数来支持各种不同协议。
The sockets layer is a protocol agnostic interface that provides a set of common functions to support a variety of different protocols.
让我们看一下怎样对一个通用函数建模的范例,使用parse_line作为例子。
Let's look at an example of how to model a global function, using parse_line as an example.
用来降低可能出现的断言模糊性的一种方法是将应用程序的条件分解为单独的通用函数。
One way to ease the possible pain of predicate ambiguity is by breaking down applications of conditions into separate generic functions.
调度类定义一个通用函数集(通过sched_class),函数集定义调度器的行为。
A scheduling class defines a common set of functions (via sched_class) that define the behavior of the scheduler.
文件系统层之下是缓冲区缓存,它为文件系统层提供了一个通用函数集(与具体文件系统无关)。
Below the file system layer is the buffer cache, which provides a common set of functions to the file system layer (independent of any particular file system).
规定了一个通用的可变函数参数(…t)及其传递(v…)。
A general syntax for variable function arguments (... t) and their propagation (v...) is now specified.
当需要依赖时,它们最好定义成通用业务流程、函数和数据模型,而不是实现构件(比如会话密钥)。
When dependencies are required, they are best defined in terms of common business processes, functions, and data models, not implementation artifacts (like a session key).
通过使用一组通用的API函数,Linux可以在许多种存储设备上支持许多种文件系统。
Using a common set of API functions, a large variety of file systems can be supported on a large variety of storage devices.
在VFS上面,是对诸如open、close、read和write之类的函数的一个通用API抽象。
At the top of the VFS is a common API abstraction of functions such as open, close, read, and write.
使用标准的C字符串函数或您习惯使用的字符串库对通用名和主机名进行比较。
Using the standard C string functions or your favorite string library, compare the common name and the host name.
不幸的是,一旦您开始编写通用的断言来描述自己希望在某个特定的函数体中处理的值时,就很容易创建一些模糊的条件。
Unfortunately, once you start writing general predicates describing the values you would like to handle within a particular function body, it becomes easy to create ambiguous conditions.
在简单的组件中,还用不到这些函数,因为简单组件的代码就包含了这些步骤,或者可以找到其他方式实现这些API 的通用用法。
These functions are not required as simple components can encompass these steps in their actual code, or you may find other ways of establishing common usage of the APIs.
VFS提供一个由底层文件系统(它们必须为各种POSIXapi函数实现行为)继承的通用文件模型。
VFS provides a common file model that the underlying file systems inherit (they must implement behaviors for the various POSIX API functions).
您看到了通用的attr函数可用于每个元素,并且Form元素有获得其值的特殊函数。
You saw that the generic attr function can be used generically on every element, and that the Form elements have special functions to get their values.
函数式编程通过提取通用的功能部分来实现代码重用,可通过高阶函数进行定制。
Functional programming achieves code reuse by abstracting out generic pieces of machinery, customizable via higher-order functions.
另外,专用函数在这个通用框架之外也可以使用。
Moreover, specialization functions are perfectly usable outside of the generic framework.
另一个需要注意的是,map()和filter()函数是完全通用的,用于处理任何列表(不只是节点列表)。
One other thing to note is that the map() and filter() functions are totally generic, working on any list, not just lists of nodes.
包装类隐藏了对底层Win32函数的调用并提供了一种舒适的通用接口。
A wrapper class hides the calls to the low-level Win32 functions and provides a comfortable generic interface.
这包括通用文本替换系统,以及领域特有的程序和函数生成器。
This included generic textual-substitution systems, as well as domain-specific program and function generators.
本地变量存储区是用来保存函数专用数据的通用区域。
The local variable storage area is a general-purpose area for saving function-specific data.
现在您已熟悉了所有小部件通用的函数,下一节将介绍小部件示例特定的函数。
Now that you are familiar with the functions common to all widgets, the next section takes you through the functions that are specific to the sample widget.
本地变量空间用作该函数的通用存储空间,寄存器保存区用于保存函数所使用的非可变寄存器的值。
The local variable space is used as a general storage area for the function, and the register save area is used to save the values of non-volatile registers that the function USES.
和许多通用的Web标准一样,PHP拥有许多功能强大的函数,可在此应用程序中使用它们。
Like many of the common Web standards, PHP has a number of great functions ready for use in this application.
现在您将使用两个著名的Lispcar和cdr函数创建更通用化的concatenation函数。
Now you'll create a more generalized concatenation function using the two functions Lisp is famous for: car and CDR.
R既是一门强大的函数式程序设计语言,也是一个用来对数据集进行统计探索的通用环境。
R is both a strongly functional programming language and a general environment for statistical exploration of data sets.
应用推荐