This variable should be typed so that it's compatible with each item in the list, array, or collection being iterated over.
这个变量应该有自己的类型,这样,它就可以与将遍历的列表、数组或集合中的每一个项兼容。
Finally, convert the list of completion proposals to an array and return this array as the result, as shown in Listing 6.
最后,将自动完成建议列表转换为一个数组,并将这个数组作为结果返回,如清单6所示。
On each row of the weight array, there is a list of all the weights between one given node and all the others.
在权重数组的每一行上,是一个给定节点与所有其他节点间权重的一个列表。
The expired array contains a sorted list of all tasks whose timeslices have expired.
过期数组中包含了一个时间片已经用尽的所有任务的有序列表。
Having stacks and streams composed of lines gives you a simple list or array of strings.
由多行组成的栈和流给您一个简单的字符串列表或者数组。
Objects are stored in some type of list or array called the pool, and handed out to the client on request.
对象存储在某种类型的列表或数组(称为“池”)中,并且根据请求分发给客户端。
It then turns the list into an array that is returned.
然后它将把列表转换成返回的数组。
Unlike in the Listing 5, where this array merely contained a list of result set fields to be displayed as elements, here it performs a far more complex function.
清单5中该数组只包含一个显示为元素的结果集字段列表,而在这里,该数组执行了一个复杂得多的函数。
The most notable limitation is the inability to determine the position you're in within a list or array (or custom object).
最明显的显然是不能确定您在列表或数组(或者定制对象)中的位置。
You want to iterate through the list, breaking each word into a sorted array of letters, then joining the array again.
需要遍历该列表,将每个单词拆分为经过排序的字母数组,然后再次合并数组。
I can build a simple stub that has an array list as a property, then implement some simple data access methods quickly, as Listing 2 shows.
我就可以构建一个简单的存根(具有作为属性的数组列表),然后快速实现一些简单数据访问方法,如清单2所示。
Once you have built up your final array, you can iterate through the array and generate a list of sums and what their respective odds are.
在构建完最终数组后,您可以迭代数组并生成骰子数总和的列表及其各自的机率。
It would be better either to return an unmodifiable List or clone the array before returning.
返回一个不可修改的List或者在返回之前克隆该数组可能更好。
The easiest way to approach this little conundrum is to recursively attack the list (which is actually an Array ) of OptionalParam elements passed in.
解决这个小难题的最容易的方法是递归地处理传入的OptionalParam元素的列表(实际上是一个Array )。
An additional asList method for converting an Object array to a List is still available.
用于将Object数组转换成List的附加aslist方法仍然有用。
It then iterates over this table list, dynamically generating a new elements array on each iteration.
然后迭代此表列表,动态地针对每个迭代生成一个新的elements数组。
Never return an array or a cloned list (getter)
永远不要返回一个数组,或者一个克隆的列表(getter)
Again, I use the get method of AppConfig to get an array reference to the configuration list and push the user-provided data into that array.
同样,我用AppConfig的get get方法来得到对配置列表的数组引用,并将用户给出的数据压入到数组中。
Gperf's internal implementation centers on two internal data structures: the keyword signatures list (Key_List) and the associated values array (asso_values).
Gperf的内部实现以两个内部数据结构为核心:关键字签名(keyword signatures)列表(Key_List)和关联值(associated values)数组(asso_values)。
With Python, the subprocess module handles making the system call to the shell command, and puts it into a list, called in array in Bash or PHP.
对于Python,子过程模块处理对Shell命令的系统调用,并将输出发在一个列表(在Bash和PHP中称为数组)中。
Listing 7. The list as an array.
清单7.list作为一个数组。
In the HPL device array name list box, choose Enter New name and provide a name for the device array that will be used for the loading job.
在HPLDeviceArrayName列表框中,选择EnterNew Name并提供用于加载作业的设备阵列名称。
In most languages, this list is realized as an array, vector, list, or sequence.
在大多数语言中,这个列表被实现为数组、向量、列表或序列。
Compared to simply passing on the list represented as an array, both workarounds are cumbersome and inefficient.
与只传递表示为阵列的列表相比,两种解决方法都很繁琐且没有效率。
One of the differences is trivial: You're now looping over a list rather than an array, which causes minor changes in the loop control.
其中有一点微不足道的差别:现在将在一张列表内而不是在数组中循环,这将导致需要在循环控制中执行一些小更改。
This array is a list of parameters that define the execution environment for the user-space application.
该数组是一组定义用户空间应用程序执行环境的参数列表。
Such a list is subsequently converted into an array.
这个列表随后被转化为一个数组。
Such a list is subsequently converted into an array.
这个列表随后被转化为一个数组。
应用推荐