如果是,则返回零,因为一个空列表的所有成员的和为零。
If so, we return zero because the sum of all members of an empty list is zero.
在这个示例中,末尾的空列表意味着您构造了一个结构良好(合适)的列表。
In this example, the empty list at the end means that you have constructed a well-formed (proper) list.
Scheme将一个列表定义为一个空列表,或者是一个下半部分为某个列表的pair。
Scheme defines a list as being either the null list or a pair whose bottom half is a list.
如果对nil调用cons,Lisp将nil作为空列表对待,并构建一个含一个元素的列表。
If you call cons on nil, Lisp treats nil as an empty list and builds a list of one element.
因此,如果您尝试创建新列表,并将其设置为对这些方法之一调用所产生的结果,则会得到一个空列表。
So, if you try to create a new list and set it to be the result of a call to one of these methods, you'll get an empty list.
我们实际上在前面的Subjecttrait中见过,Subject . observers字段被初始化为一个空列表。
We actually saw this before in our Subject trait, where the Subject.observers field was initialized to an empty list.
本例展示如何创建包含从0到9(包括 0和 9)的简单list,以及如何创建一个空列表和一个包含单个条目的列表。
This example shows how to create a simple list containing the integers from 0 to 9, inclusive, as well as how to create an empty list and a list containing a single item.
使用这个agent指定一个空磁盘设备列表,并为某个应用预订全部或一定百分比的可用磁盘。
Use this agent to specify a list of raw disk devices, and reserve all or a percentage of accessible disks for an application.
然后,我将把您的公司从潜在问题客户列表中划掉,然后腾出空来参加一门或两门课程的学习。
Then, I will cross your company off my potential problem-client list and maybe make room on my calendar for taking a class or two.
显示空的IP筛选列表。
在这个示例中,如果读取新闻提要失败,那么会产生空的新闻列表。
A failure to read a news feed in your example produces an empty list of news.
如果列表为空,就会增加等待线程的数量,并阻塞当前线程。
If the list is empty, the number of waiting threads is incremented and the current thread is blocked.
这个程序首先检查边界条件 ——列表是否为空。
This program begins by first checking a boundary condition -- whether or not the list is empty.
因此,在唤醒读线程之后,要确认列表非空,然后再继续处理。
Hence, after waking up the reader thread, verify that the list is not empty, and then proceed.
为了进行此操作,需要使用空对象初始化此列表。
To do so, this list needs to be initialized with empty objects.
维列表为空的聚合应用于多维数据集模型中没有被其他聚合使用的所有维。
The aggregation for an empty list of dimensions is applied to all dimensions in the cube model that are not specifically being used by another aggregation.
filter()方法首先检查列表是否为空,这是该方法的重要退出条件。
The filter() method first checks to see if the list is empty — the critically important exit condition for this method.
而一个没有内容的元素由一个空的子列表表示,但是一个自封闭的标记由None表示。
Moreover, an element that has no content is represented by an empty child list, but a self-closed tag is represented by None. Listing 2 shows this structure in action.
最开始列表为空,因为没有附加任何中介策略-需要先创建后附加。
Initially an empty list results as there are no mediation policies attached — you will need to create them before attaching them.
列表7.设置soapaction为空。
起初显示的扩展MBean的列表是空的。
The list of Extension MBeans that displays will initially be empty.
点击编辑器窗口下方的References标签,您将看到资源引用的一个列表,这个列表可能会是空的。
Click on the references TAB at the bottom of the editor window. You will see a list of resource references, which may be empty.
对于需要额外空间的列表,每个列表项之间引入空段落。
For lists that needed extra space, an empty paragraph was introduced between each list item.
当然,列表的强大力量部分来自于递归处理列表元素的能力,这表示可以从列表提取头部,直到列表为空,然后累积结果。
Of course, part of the power of lists comes in recursive processing of the list elements, which simply means pulling the head from the list until the list is empty, then accumulating the results.
在得到单词列表后,需要随机选出一个单词,将每个字母显示为空,然后开始猜测。
Once we've got a list of words, we need to pick one out at random, display a blank for each letter, and start taking guesses.
一个度量必须有一个维列表为空的聚合,其他聚合必须都具有明确的维列表。
A measure must have one aggregation with an empty list of dimensions, and any other aggregations must each have an explicit list of dimensions.
如果遍历了所有检索到的区域设置后,该列表为空,则会将门户缺省区域设置添加到列表中。
If the list is empty after going through all the retrieved locales, the portal default locale is added to the list.
右上方是该企业应用程序内所有模块的列表;这个列表是空的,因为该企业应用程序还只是一个空壳。
At the top right is a list of all modules within this enterprise application; this list is empty because the enterprise application is still only an empty shell.
右上方是该企业应用程序内所有模块的列表;这个列表是空的,因为该企业应用程序还只是一个空壳。
At the top right is a list of all modules within this enterprise application; this list is empty because the enterprise application is still only an empty shell.
应用推荐