本文将展示这两种类型的函数示例。
You'll see examples of both types of functions in this article.
让我们来看一些基于链表的递归函数示例。
Let's look at a few examples of recursive functions on linked lists.
我们的下一个基于列表的递归函数示例要稍微复杂一些。
Our next example of a recursive function on lists will be a little more complicated.
给出的函数示例有时会使用字段引用以显示函数计算的原理。
Function examples presented sometimes use field references to show how the function works.
在本例中,函数示例一点也不比第一个示例简短,而且一点也不比第一个示例简单。
The functional example in this case is not any shorter than the first example, and it is not really any simpler.
您看到了四个函数示例,您可以扩展、修改并添加新的函数以便帮助您更好地满足您自己的要求。
You saw four examples of functions, to which you can extend, modify, and add new functions to help you better match your own requirements.
在教程的末尾,您将拥有自己的XQuery函数示例,它能够正常工作并且可以满足业务需求。
At the end of this tutorial, you will have a working example of an XQuery function and its applicability to a business requirement.
表1展示了这些函数的一些示例。
先使用度量的聚合列表中的第一个聚合函数(在这个示例中是SUM)对表达式模板进行聚合,产生一个查询。
Start by generating the query using the first aggregation function (SUM in the example) in the measure's list of aggregations to aggregate the template expression.
这里有个略微复杂些的示例,它使用定制函数来生成该完成。
There is one slightly more complicated example which uses a custom function to generate the completions.
示例定制函数将访问文件信息并在表单中显示结果。
The sample custom function accesses the file information and displays the results in the form.
本文提供了一些有关函数索引的示例。
This article provides several samples of functional indexes.
这由示例中的缩减函数完成,包含缩减阶段。
This is the reduction function in our example and encompasses the reduction phase.
清单8提供了实现的函数用法和函数骨架示例。
Listing 8 provides an example of the function use and skeleton functions for implementation.
附录B显示了一个自定义函数选择器的示例代码。
Appendix B shows sample code for a custom Function Selector.
在这个示例中,使用XMLQUERY函数修改给定的XML文档。
In this example, the XMLQUERY function is used to modify the given XML document.
清单1所示的前两个函数,是系统调用的简单示例。
The first two functions, shown in Listing 1, are simple examples of a system call.
清单2是一个示例php函数。
清单1展示了一个示例构造函数。
我们将考察使用这些函数解析和检查输入而不进行手动编码的原因,并介绍一些如何使用这些新函数的基本示例。
We will look at reasons for why you would use these functions for parsing and checking input, instead of hand-coding, and we cover some basic examples of how to use these new functions.
这个查询示例调用rec2xml函数。
现在您已熟悉了所有小部件通用的函数,下一节将介绍小部件示例特定的函数。
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.
如何在适当时调用成员函数的示例?
Examples of how to invoke the member function when appropriate.
第二个示例包含从函数返回的代码。
第四个示例检查用户程序函数的参数。
Fourth Example check the parameters to a user program function.
假设您调用示例1 (b)中的函数。
清单3中的代码片段显示了onreadystatechange回调函数的典型实例化示例。
The snippet in Listing 3 shows an example of a typical incarnation of the onreadystatechange callback function.
清单1显示了我们的示例中函数选择器的代码段。
Listing 1 shows an extract of the function selector code that comes with our example.
fitness函数与最初示例中的相似,但“奖赏”的结构有所不同,而且循环实际上也进行了简化。
The fitness function is similar to the one from the original example, but the reward structure is different and the loop is actually simplified.
清单8.load函数的示例应用程序。
应用推荐