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。
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 other syntax elements are the same as those for non-generic functions and types.
其他语法元素与非泛型函数和类型的语法元素相同。
The other syntax elements are the same as those for non-generic functions and types.
其他语法元素与非泛型函数和类型的语法元素相同。
应用推荐