也就是说,你可以传入任意多的,以分号分隔的字符串(包括空的列表)。
That is, you can pass in as many comma-separated strings as you want (including an empty list).
我们希望makeList能返回一个List[String],但是当strings.length等于0 时,我们错误地假设List(0)是一个空的列表并且将其返回。
We intended for makeList to return a List[String], but when strings.length equals zero, we returned List(0), incorrectly “assuming” that this expression is the correct way to create an empty list.
在这个示例中,如果读取新闻提要失败,那么会产生空的新闻列表。
A failure to read a news feed in your example produces an empty list of news.
对于需要额外空间的列表,每个列表项之间引入空段落。
For lists that needed extra space, an empty paragraph was introduced between each list item.
然后,我将把您的公司从潜在问题客户列表中划掉,然后腾出空来参加一门或两门课程的学习。
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.
如果用空的初始化器列表对变量进行初始化,对象为初始化值。
If a variable is initialized with an empty initializer list, the object is value initialized.
如果列表为空,就会增加等待线程的数量,并阻塞当前线程。
If the list is empty, the number of waiting threads is incremented and the current thread is blocked.
如果这个列表为空,就不存在任何模块依赖项,因此这个模块就是要删除的模块(否则会返回一个错误)。
If this list is empty, no module dependencies exist and the module is a candidate for removal (otherwise, an error is returned).
显示空的IP筛选列表。
filter()方法首先检查列表是否为空,这是该方法的重要退出条件。
The filter() method first checks to see if the list is empty — the critically important exit condition for this method.
在授予访问映像的权限之前,运行命令db2adutlqueryacccess forall返回一个空列表。
Prior to granting the access to the image, issuing the command db2adutl queryacccess for all returns an empty list.
因此,如果您尝试创建新列表,并将其设置为对这些方法之一调用所产生的结果,则会得到一个空列表。
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.
右上方是该企业应用程序内所有模块的列表;这个列表是空的,因为该企业应用程序还只是一个空壳。
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.
在这个示例中,末尾的空列表意味着您构造了一个结构良好(合适)的列表。
In this example, the empty list at the end means that you have constructed a well-formed (proper) list.
一个度量必须有一个维列表为空的聚合,其他聚合必须都具有明确的维列表。
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.
如果这个复选框没有选择,那么产生的WSDL的设置为(空的),如列表7所示。
If this checkbox is not selected, the generated WSDL is set to (null), as shown in Listing 7.
如果是,则返回零,因为一个空列表的所有成员的和为零。
If so, we return zero because the sum of all members of an empty list is zero.
当遇到一个空列表(写为)时,您就会知道已经到了列表的末尾。
You know you're at the end of a list when you hit the null list, written as .
能到达列表末尾的惟一情形是此前所有项都按顺序排列,所以,如果某个列表为空,则列表为升序。
The only way to get to the end of the list is if everything so far has been in order, so if the list is empty, the list is in ascending order.
几分钟后,他在远程NT主机上启动了一个空会话,又过了几分钟,他得到了用户的ID列表。
A few minutes later he started a null session with the remote NT box, and a few minutes after that he had a nice list of user IDs to play with.
维列表为空的聚合应用于多维数据集模型中没有被其他聚合使用的所有维。
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.
如果对nil调用cons,Lisp将nil作为空列表对待,并构建一个含一个元素的列表。
If you call cons on nil, Lisp treats nil as an empty list and builds a list of one element.
接下来,创建一个名为history 的var,它只是一个空列表,然后是名为droid 的 var ,它是个项。
Next, you create a var called history that is just an empty list and then a var called droid that is an 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.
本例展示如何创建包含从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.
当然,列表的强大力量部分来自于递归处理列表元素的能力,这表示可以从列表提取头部,直到列表为空,然后累积结果。
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.
Scheme将一个列表定义为一个空列表,或者是一个下半部分为某个列表的pair。
Scheme defines a list as being either the null list or a pair whose bottom half is a list.
点击编辑器窗口下方的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.
而一个没有内容的元素由一个空的子列表表示,但是一个自封闭的标记由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.
应用推荐