表示选取这些匹配元素中的第一个元素。
current参数的初始值是数组内的第一个元素。
The current parameter starts off as the first element in the array.
枚举数位于集合的第一个元素之前或最后一个元素之后。
The enumerator is positioned before the first element of the collection or after the last element.
您如何选择XML文档中的第一个元素取决于您如何使用XPath。
How you select the first element in the XML document depends on how you use XPath.
head返回列表的第一个元素,tail返回其他的元素。
Head returns the first element of a list, and tail returns everything else. Listing 3 shows some simple list functions.
主模板和o:export匹配,这是预处理程序生成的第一个元素。
The main template matches o: export, which is the first element generated by the pre-processor.
通常,该结构体是用来进行任务定义的结构体的第一个元素(后面有相关例子)。
Typically, this structure is the first element of a user's structure of work definition (you'll see an example of this later).
在左边的第一个索引代表会加载默认的第一个元素,你通常希望是0。
The first index on the left represents the first element to be loaded by default, and you usually want that to be 0.
对于选择元素集合中的第一个元素,最容易的方法是利用值1 的谓词。
The easiest method for selecting the first in a set of elements is with a predicate of value 1.
函数的作用是:删除数组中的第一个元素并返回这个被删除的元素的值。
The array_shift function removes the first element from an array, and returns the value of the removed element.
我为菜单的第一个元素添加了完整的清单,但对于其他元素,则省略了重复的清单。
The resulting HTML looks like Listing 7. I included the entire listing for the first element in the menu, but skipped the repetitive listings for the other elements.
清单4中的第一个元素包含了关于这个示例中专用uddi注册中心的信息。
The first element in Listing 4 contains information about the private UDDI registry used in this example.
有一点要注意:数组的第一个元素(而不是最后一个元素)是这个调用跟踪的栈顶。
One thing to note: the first element of the arrray is the top of the call trace, not the last.
spu_extract (myvec,0)将myvec的第一个元素作为标量返回。
Spu_extract (myvec, 0) returns the first element of myvec as a scalar.
第一列是position函数的值,这些Name元素是它们父元素中的第一个元素。
The first column is the value of the position function of those Name elements that are first within their parent element.
该数组的第一个元素实际上是二进制文件的名称,因此参数实际上是从第二个元素开始的。
The first element of the array is actually the name of the binary, so it's really the second element where the parameters start.
从列表的第一个元素获取数据的函数称为car(这个名字是古老的汇编语言指令的延续)。
The function to retrieve the data from the first element of a list is called car (a name which is a holdover from an ancient assembly language instruction).
列表的第一个元素是否是某个特殊形式(special form)(不是函数的操作)的名称?
Is the first element of the list the name of a special form (an operator that isn't a function)?
在我的情况,我有2张图像,一个在顶部屏幕上的第一个元素,并在底部添加到屏幕上最后一个元素。
In my case, I have 2 images, one at the top first element on the screen and at the bottom last element added to the screen.
firstpos() :与根在节点n 上的XPath的第一个元素匹配的XML节点集
n.firstpos(): the set of XML nodes that match the first element of an XPath rooted at node n
如果您正在部署该代码,您可能还要检查一下,在引用该数组的第一个元素之前,该数组至少有一个元素。
Note that if you were deploying this code, you would probably also want to check that the array had at least one element before referring to the array's first element.
如果需要传递一个子区间,则传递指向这个子区间的第一个元素以及最后一个元素的下一位置的迭代器。
If we wish to pass a subrange, we pass iterators to the first and one past the last element of that subrange.
topicDITA映射中的第一个元素用来保存eclipseTOC文件中元素的topic属性。
Topic the first element in the DITA map is used to preserve the topic attribute of the element in the Eclipse TOC file.
first能够去除列表的第一个元素,rest简化了将尾部递归(清单9中的递归类型)应用于列表其余部分的过程。
First can peel off the first element of the list, and rest makes it easy to apply tail recursion — the type of recursion in Listing 9 — to the rest.
现在,比较每个列表的第一个元素,2要比3小,所以2应该是合并后列表的,下一个元素,然后你们就知道了。
Now, compare the first element in each of these lists. Two is less than three, so two ought to be the next element of the list.
它先匹配head:tail,这时head会被赋予这个列表的第一个元素,tail会被赋予列表剩余的部分。
It first matches on head: : tail, where head will be assigned the first element in the list and tail will be assigned the rest of the list.
这以区别相当重要,尤其是当你写一些要修改列表的函数的时候。比如下面这个函数并没有能够删除列表的第一个元素。
This difference is important when you write functions that are supposed to modify lists. For example, this function does not delete the head of a list.
因此,用来测试并集结果的 =1 表达式只包括一个元素,这意味着当前测试的元素是包含地址的文档中的第一个元素。
So the = 1 tests that the result of this union only contains one element, meaning that the currently-tested element is the first one in the document with its address.
如果序列是空的,就返回初始值,否则函数会先接收初始值和序列的第一个元素,然后是返回值和下一个元素,依此类推。
In this case the starting value is returned for an empty sequence, and the function is first applied to the starting value and the first sequence item, then to the result and the next item, and so on.
它还可以节省时间,如果对于节点集的唯一操作就是测试它是否是空的(通常是这种情况),或者对它的第一个元素进行赋值。
It can also save time, if it turns out (as it often does) that the only thing done with the node-set is to test whether it is empty, or to get the value of its first element.
应用推荐