Can I make a function accepting generic functions as a parameter?
我可以接受的通用功能函数作为参数?
As a simple example, let us create a generic function called whoami and some tagged methods to dispatch to.
作为一个简单的例子,我们来创建一个称为whoami的泛型函数以及一些要被分派标记的方法。
In prior examples, we always used the same doIt() name to define specializations of the generic function doIt().
在上一个例子中,我们总是使用相同的doIt()名来定义通用函数 doIt() 的独特性。
It is true enough that dispatch.on generic function signatures for new types can be added without changing the prior code.
对于新的类型来说,的确可以添加dispatch .on通用函数签名,而不用修改以前的代码。
In our case, you could find a generic function that creates the XMLHttpRequest instance and calls its open and send methods.
在我们的示例中,您能找到一个泛型函数,此函数能创建XMLHttpRequest实例和调用实例的open和send方法。
The generic function itself must be named in the decorators to specialization and in the ultimate call that gets dispatched.
通用函数本身必须使用decorator进行命名来表示自己的独特性,并在最终会被分派的调用中使用。
Class Code the Class Code register is read-only and is used to identify the generic function of the device and, in some cases, a specific register-level programming interface.
本寄存器是只读的,被用来标识该设备类属的功能,而且在有些情况下,是一个寄存器级的编程接口。
This included generic textual-substitution systems, as well as domain-specific program and function generators.
这包括通用文本替换系统,以及领域特有的程序和函数生成器。
For example, one could write a generic SDO-access function and populate it with element-specific metadata in order to access individual SDOs.
例如,可以编写一个泛型sdo访问函数并用特定于元素的元数据填充它来访问单独的SDO。
The service providers need to build reusable business function that is robust, efficient, and generic — it should work for all business models, not just the gaming industries.
服务提供者需要构建可重复使用的业务功能,而且这些功能必须是可靠的、高效的和通用的,应该对所有的业务模式通用,而不仅仅是游戏行业。
Note, however, that the consideration of "generic" is a function of the state of technology and the ecosystem.
但是要注意,“通用性”的考虑取决于技术和生态系统的现状。
However, we chose to use the "generic" Ajax function, instead, to be more generally applicable to other applications you might prefer to build.
然而,我们选择使用“通用的”ajax函数,这样就可以普遍应用于您可能希望构建的其他应用程序。
The first type evaluator visitor is generated in the generic "on" function.
第一个类型求值程序访问器是在通用“on”函数中生成的。
CSimpleBinaryTree provides a generic global compare function that compares two Pointers of type long.
CSimpleBinaryTree提供了一个通用的全局比较函数,它可以比较两个长整型的指针。
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元素有获得其值的特殊函数。
A key thing to notice in this function is the use of the gentab (generic table) library to generate tables in OAT.
有关该函数需要注意的一点是使用了gentab(泛型表)库在OAT中生成表。
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函数之外)都允许在效果完成时传入要调用的速度和函数。
The function format-attrs is probably more an example of generic recursive programming in Scheme than it is specific to SSAX.
函数format -attrs可能更多表现了Scheme中一般的递归编程,而不仅仅局限于SSAX。
Likewise, the built-in print function is also generic. We could specialize that with.
同样,内置的print函数也是泛型函数。
The most generic search function is through query language, such as SQL and XQuery.
最常见的搜索功能是使用SQL和XQuery之类的查询语言。
If you just want generic serialization of gnosis.xml.objectify objects, perhaps with a few values changed from the original XML, you can write a utility function to do this in 12 lines.
如果只需要一般的gnosis . xml . objectify序列化,比如原始xml中改变的几个值,只要12行代码就可以编写一个实用函数。
Function objects are an important part of generic programming because they allow abstraction not only over the types of objects, but also over the operations that are being performed.
函数对象是一个重要的普通程序的一部分,因为他们允许抽象比类型对象还要多,而且比它正在执行的操作还要多。
As you can see the type of the class variables is generic, but you can improve the generator to understand if a variable should contain a number or a function.
如你所见,类的成员变量的类型是通用类型,但是你可以改进产生器,使之知道一个变量应该包含一个数字或一个函数。
The Receiver object is nothing more than a Generic Parameter with an overriddendisplay function.
具有接收器功能对象只不过是一个普通的参数覆盖了显示功能而已。
A model of generic report is designed based on Object-Oriented method by the analysis of the structure of generic report, and the function of print and user-defined in generic report is realized.
通过对通用报表结构的分析,用面向对象的方法设计了一个通用报表模型,实现了通用报表的打印和用户定制功能。
This function is written in a very generic way.
此函数以一种很常见的方式书写。
The paper analyses the function and constitute of Intelligent home, introduces Generic cabling system of Intelligent home and its linking up with Intelligent home area.
对智能住宅的功能与构成进行了分析,并对智能住宅的综合布线及与智能小区的连接进行了阐述,提出了智能住宅的发展趋势。
This paper surveys generic features and function of open enterprise information portal, integrated architecture of information, application, and service, and standard components of content-provider.
本论文探讨了开放式企业入口网站的一般特性与功能,以及信息、应用程序与服务的整合架构,内容-提供者的标准组件等。
This paper surveys generic features and function of open enterprise information portal, integrated architecture of information, application, and service, and standard components of content-provider.
本论文探讨了开放式企业入口网站的一般特性与功能,以及信息、应用程序与服务的整合架构,内容-提供者的标准组件等。
应用推荐