As you can see, this creates a brand new list that is the result of applying the function to every element of the original list.
如您所见,这样就可以创建出一个全新的列表,这个列表是将函数应用到原始列表中每个元素的结果。
Listing 6 creates a scalar function that extracts a given XML element from an input document and shows how this function can be invoked in a simple SQL query to return the name of a given customer.
清单6创建一个标量函数,它从输入文档中提取出一个特定的xml元素。然后,在一个简单的SQL查询中调用此函数,从而返回给定的客户的姓名。
Here's a short function to add the number 2 to every element of a list and return the resulting list.
这里是一个简短的函数,用于向列表中的每一个元素加2,并返回结果列表。
At the end of a successful XML tree walk, this function will convert and store all the XML elements (the root element and all the child elements) in a PHP associative array.
成功遍历xml树之后,该函数就用PHP关联数组转换和存储了所有的XML元素(根元素和所有的孩子元素)。
As shown in Figure 1, a component is the basic element of a business function in an SCA application.
如图1中所示,组件是SCA应用程序中的基本业务功能元素。
The handler takes an instance of DFATable and USES the move function to transition to a new state given the XML element.
该处理程序获取DFATable的实例,并使用move函数来转换到新状态(在给定xml元素的情况下)。
It returns a new sequence where the NTH element of the sequence is the result of applying the function to the NTH element of the original sequence.
它返回一个新的序列,该序列的第n个元素是将此函数应用到原始序列的第n个元素后的结果。
The result is a new array, where the i-th element is the result of applying the function to the i-th element of the original array.
结果是一个新数组,其中的第i个元素就是将此函数应用到原始数组的第i个元素后的结果。
The function returns a test element that dashboard.xq USES to display the status of a Web site.
此函数返回的是一个测试元素,dashboard .xq使用这个测试元素来显示Web站点的状态。
The filter function calls a test function, which returns a Boolean, on each element of a list and includes that element only if the test function returns True.
filter函数为列表的每个元素调用一个测试函数,测试函数返回布尔值,当测试函数返回True时,还包含列表的元素。
A simple way to do this is with a function, defined in the HTML head element of a Web page, that USES the id attributes of HTML elements, as shown in Listing 1.
简单的实现方法是利用一个函数,这个函数在web页面的HTMLhead元素中定义,它使用HTML元素的id属性进行绑定,如清单1所示。
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).
从列表的第一个元素获取数据的函数称为car(这个名字是古老的汇编语言指令的延续)。
The first statement calls a function (in this case, toUpper, which converts a character to uppercase) on each element of a list.
第一个语句在列表的每个元素上调用函数(本例中为toUpper,用于把字符转成大写)。
The WHERE clause invokes the XMLExists function, specifying an XPath expression that prompts DB2 to navigate to the "zip" element and check for a value of 95116.
WHERE 子句调用XMLExists函数,指定一个XPath表达式,这个表达式使DB2找到 "zip"元素并检查元素值是否为 95116。"
You can designate parameters as optional or required in the XSL: param element, except when that element is a child of XSL: function, in which case they are always required.
可以在xsl:param元素中指定参数是可选或必须的,除非该元素是xsl:function的子元素,这种情况下参数是不可少的。
A fold function takes a function, an element, and a list. You can think of a fold function in this way.
fold函数接受一个函数、一个元素和一个列表。
This strategy lets you apply a function to each of a function's elements in a variety of ways. Listing 5 shows a series of functions that apply functions to each element of a list.
这个策略让您能够用不同的方式把函数应用到函数的每个元素。
The commercial stainless steel hood, while the height of function, also adds a stunning architectural element to the space.
商业用的不锈钢罩不但有顶级功能,同时也为这片空间增添了极为漂亮的建筑元素。
The most important of these is map, which applies a function to every element of a list.
其中最重要的是map,它将某个函数应用到列表中的每个元素。
The map function is similar to filter , except that instead of removing some elements, it replaces every element with a user-specified transformation of its original value. The syntax is.
map函数类似于filter,与后者不同的是它不是删除部分元素,而是使用用户指定的原始值转换替换每个元素。
Is the first element of the list the name of a special form (an operator that isn't a function)?
列表的第一个元素是否是某个特殊形式(special form)(不是函数的操作)的名称?
If the data is stored sequentially, the time to find the item is proportional to the size of the list. For each element, a hash function calculates a number, which is used as an index into the table.
如果数据是序列存储的,从中查询一个项的时间取决于数据列的大小。
The index function returns the current position of a repeat element.
index函数可以返回repeat元素的当前状态。
Domino Designer 7.0 introduces a new design element that lets you maintain the function of a Web Service.
DominoDesigner 7.0引入了新的设计元素,这些元素允许维护Web Service的功能。
And that list is then prepended as a single element at the start of the s: completions variable using the built-in insert function.
然后,使用insert函数将该列表附加到s:completions变量的后面。
The regmatch(re, text) function compares the regular expression to the text, yielding either Null for no matches or an array of pairs of integers (a two-element array).
regmatch(re,text)函数将比较正则表达式和文本,如果没有匹配的话就生成Null 值,否则生成一个由成对整数组成的数组(双元素数组)。
To walk through the completions table, the function USES a special version of the for statement. The standard for loop in Vimscript walks through a one-dimensional list, one element at a time.
为了遍历补全列表,该函数使用一个特殊版本的for语句。
Money has always had a sacred aura about it, an element of mystery about its origin and function.
一直以来货币存在着神圣的光环和一种关于它的起源和功能的神秘因素。
Color as an important element in commodity packaging design, not only beautify the commodity packaging role, and in the process of commodity marketing also plays a function which cannot be ignored.
色彩作为商品包装设计中的重要元素,不仅起着美化商品包装的作用,而且在商品营销的过程中也起着不可忽视的功能。
An input to a binary logic element exercising overall control of the element function (s).
二进制逻辑元件的一种输入,可对该元件的操作实施总控制。
应用推荐