Can I make a function accepting generic functions as a parameter?
我可以接受的通用功能函数作为参数?
R's approach to OOP is based on generic functions rather than on class hierarchies.
R的OOP 方式基于泛型函数(generic function),而不是基于类层次结构。
Multimethods are similar to generic functions in other languages such as Common Lisp.
多重方法类似于其他语言中的一般函数,如 Common Lisp。
The other syntax elements are the same as those for non-generic functions and types.
其他语法元素与非泛型函数和类型的语法元素相同。
Most significantly, you created generic functions that can handle any number of contestants.
最重要的是,您创建了一些通用函数用于处理任意数量的竞争者。
One way to ease the possible pain of predicate ambiguity is by breaking down applications of conditions into separate generic functions.
用来降低可能出现的断言模糊性的一种方法是将应用程序的条件分解为单独的通用函数。
The concept of generic functions — especially the wild idea of predicatively dispatched functions — can be a little hard to understand at first.
通用函数的概念(尤其是断言分派函数的思想)最初可能有点难以理解。
The PCI subsystem (also known as the PCI layer) in the kernel provides all the generic functions that are used in common by various PCI device drivers.
在内核中的PCI子系统,也就是众所周知的PCI层,提供了所有可以用于大多数PCI设备驱动的通用功能。
But I can very easily imagine a collection of defined predicative generic functions working happily for a long time before the ambiguous case is encountered.
但是在碰到这些模糊性之前,我很长时间都认为定义一些断言通用函数就可以了。
However, generic functions are much better; generic functions will order themselves from more to less specific so there is no question of putting an elif in the wrong place.
然而,使用通用函数会更好;通用函数自己就会有些或多或少的特性,因此不会在错误的地方使用elif。
Generic classes can be viewed as functions mapping their arguments to new instantiations.
泛型类可被视为将它们的参数映射成新实例化的函数。
Generic types can be thought of as type "functions"; they are parameterized by type variables that can then be instantiated with various type arguments depending on context.
可以将泛型类型看作是类型“函数”;它们通过类型变量进行参数化,这些类型变量可以根据上下文用各种类型参数进行实例化。
Enterprise architects may find that some of the functions are generic and can be replaced by offerings from third party vendors.
企业架构师可能发现某些功能是通用的,可以通过第三方厂商提供的产品替换掉。
Moreover, specialization functions are perfectly usable outside of the generic framework.
另外,专用函数在这个通用框架之外也可以使用。
Functional programming achieves code reuse by abstracting out generic pieces of machinery, customizable via higher-order functions.
函数式编程通过提取通用的功能部分来实现代码重用,可通过高阶函数进行定制。
Next, it discussed why you need these functions, and provided examples of some generic scenarios.
接着讨论了需要使用这些函数的原因,并举例说明了一些常见的场景。
One other thing to note is that the map() and filter() functions are totally generic, working on any list, not just lists of nodes.
另一个需要注意的是,map()和filter()函数是完全通用的,用于处理任何列表(不只是节点列表)。
Each function (with the exception of the generic show and hide functions) allows you to pass in a speed and a function to call when the effect is complete.
每个函数(除了通用的show和hide函数之外)都允许在效果完成时传入要调用的速度和函数。
A wrapper class hides the calls to the low-level Win32 functions and provides a comfortable generic interface.
包装类隐藏了对底层Win32函数的调用并提供了一种舒适的通用接口。
The reason: both mixins and generic classes can be thought of as functions mapping existing classes to new classes.
原因是:mixin和泛型类都能被认为是将现有类映射到新类的函数。
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.
您看到了通用的attr函数可用于每个元素,并且Form元素有获得其值的特殊函数。
Theme functions provide generic methods to build Web content that is used by modules providing core functions in Drupal, or by your own modules to extend Drupal.
主题函数提供生成Web内容的一般性方法,模块使用它们提供Drupal中的核心函数或者对Drupal进行扩展。
In functional programming, you have far fewer abstractions, but each one is generic (with specificity added via first-class functions).
在函数式编程中,您拥有更少的抽象,但是每个抽象都具有通用性(通过一等函数添加特性)。
The characteristics and functions of aerocraft simulator are studied based on a structured generic C3I system test-bed.
在搭建的一类C3I系统平台上,研究了系统的飞行器模拟器节点的特点及其功能。
For the modification from the generic face model to the given face model, the thesis adopts an improved method of interpolation based on radial basis functions and gets a good result.
针对从一般人脸模型到特定人脸的修改问题,采用了一种改进的基于径向基函数的插值方法,取得了良好的实验效果。
The most important generic attack on the collision resistant is the birthday attack, it is used to attack all kinds of hash functions.
生日攻击是通用的碰撞攻击方法,它可用于攻击任何类型的散列函数。
Thirdly we employ radial basis functions (RBF) interpolation method to deform a neutral generic model to the personalized geometry model according to the detected features.
根据检测结果用径向基函数插值方法将事先选择好的一个中性标准网格模型进行空间网格变形使其变形为个性化人脸几何模型;
Thirdly we employ radial basis functions (RBF) interpolation method to deform a neutral generic model to the personalized geometry model according to the detected features.
根据检测结果用径向基函数插值方法将事先选择好的一个中性标准网格模型进行空间网格变形使其变形为个性化人脸几何模型;
应用推荐