同样,内置的print函数也是泛型函数。
Likewise, the built-in print function is also generic. We could specialize that with.
其他语法元素与非泛型函数和类型的语法元素相同。
The other syntax elements are the same as those for non-generic functions and types.
作为一个简单的例子,我们来创建一个称为whoami的泛型函数以及一些要被分派标记的方法。
As a simple example, let us create a generic function called whoami and some tagged methods to dispatch to.
R的OOP 方式基于泛型函数(generic function),而不是基于类层次结构。
R's approach to OOP is based on generic functions rather than on class hierarchies.
在我们的示例中,您能找到一个泛型函数,此函数能创建XMLHttpRequest实例和调用实例的open和send方法。
In our case, you could find a generic function that creates the XMLHttpRequest instance and calls its open and send methods.
在我们的示例中,您能找到一个泛型函数,此函数能创建XMLHttpRequest实例和调用实例的open和send方法。
In our case, you could find a generic function that creates the XMLHttpRequest instance and calls its open and send methods.
应用推荐