The range function is simply a list constructor, very similar to the range function in Python, or the..
range函数只是一个list构造函数,非常类似于Python中的range函数,或者是Haskell或Perl中的. .。
You aren't limited to passing a sequence directly into the constructor; you can also pass a variable that holds a tuple or a string into the list constructor.
您不仅能够将序列直接传递给构造函数,还可以将拥有元组或字符串的变量传递给list 构造函数。
The only trick here is that I need to output the list of parameters to each constructor or method.
这里惟一的诀窍是,我需要将参数列表输出到每个构造函数或方法中。
In this example, you are not supplying a list of named users in the constructor, so the table returned will be a configuration table, not a permissions table.
在本示例中,您并未在构造函数中提供命名用户的列表,因此返回的表将为配置表,而不是权限表。
You can construct lists with multiple elements using the constructor, which builds a list from an element and another list.
可以使用构造函数构造包含多个元素的列表,它用一个元素和另一个列表构造列表。
The constructor then prints a warning message that there are no callbacks, since lists are immutable and there is no way to replace the callback list val with a new one.
然后构造函数打印出一条警告消息指明没有回调函数,因为列表是不可变的,所以我们没有机会用一个新的值来替代现有的回调函数列表。
The primary constructor, which is the body of the entire class, has a parameter list that takes a label string and a list of callback functions.
主构造函数,类的主题,有一个参数列表来接受标签字符串和回调函数的列表。
The core constructor, cons, takes two arguments: an atom and a list.
核心构造函数cons 带有两个参数:一个原子和一个列表。
Traits don't support auxiliary constructors, nor do they accept an argument list for the primary constructor, the body of a trait.
Traits不支持辅助构造函数,它们也不支持在主构造函数,trait的主体里的参数列表。
First, the servlet creates an instance of the view bean, GetErrandListHTMLView, passing the errand list as a parameter on the constructor.
首先,servlet创建一个视图bean实例GetErrandListHTMLView,将差事列表作为参数传递给构造函数。
But notice that the single-argument constructor does not place an empty list into the rest field, as would be necessary to construct a list of one argument.
但是注意单参数构造器不是把空链表放入到rest域,这是构建一个只有一个值的链表所必须的。
The primary constructor takes a label argument and a list of callbacks that are invoked when the button's click method is invoked.
主构造函数接受一个label(标签)参数和一个callbacks(回调)的list(列表),这些回调函数会在按钮的click方法被调用时被调用。
In a construct similar to filter chaining, it takes a list of MessageHandler objects in the constructor.
在类似于过滤器链的结构中,构造函数中包含一系列的MessageHandler对象。
A member variable holds the list of configuration items, a constructor loads the items, and an accessor method called get returns the value of an item.
成员变量保存配置项的列表,构造程序装入项,然后名为get的访问方法返回项的值。
If you do not write a correct code for the copy constructor, object within a list will have some data members uninitialized.
如果你没有为拷贝构造函数写正确的代码,就有可能造成list中对象的某些数据成员没有初始化。
Thus, you can create a list using a constructor, in addition to the shorthand notation of using the square brackets.
因此,使用构造函数及方括号简化符号,可以创建list。
By passing the list on to the constructor, we can easily add the same list to both a LinkedHashSet and a plain HashSet.
通过将list传递到构造函数,我们可以很轻松地将相同的list添加到LinkedHashSet和简单的HashSet中。
This class in its constructor initializes an instance of the org.directwebremoting.WebContext class provided by DWR, and then registers itself with StockQuoteGenerator's list of listeners.
此类在其构造函数中初始化DWR提供的org.directwebremoting.WebContext类的实例,然后向StockQuoteGenerator's 侦听器列表注册自身。
It calls the primary constructor with Nil (which represents an empty List object).
它调用主构造函数,并且传入Nil (Nil表示了一个空的List对象)。
A constructor initializer list specifies initial values for one or more data members of the class.
构造函数的初始化列表为类的一个或多个数据成员指定初值。
Omitting the constructor argument list and enclosing parentheses is equivalent to specifying an empty argument list.
省略构造函数参数列表和封闭的圆括号等价于指定一个空参数列表。
Class members that are not initialized in the initializer list are implicitly initialized by using their default constructor.
没有在初始化列表中初始化的类成员,使用它们的默认构造函数隐式初始化。
The primary constructor for RadioButtonWithCallbacks takes three parameters: an on state (true or false), a label, and a list of callbacks.
RadioButtonWithCallbacks的主构造函数接受3个参数,一个开关状态(真或假),一个标签,以及一个回调函数例表。
It follows the constructor parameter list and begins with a colon.
它跟在构造函数的形参表之后,以冒号开关。
Evaluate is called with the XPath string passed into the method, the DOM tree you built in the class's constructor, and the constant indicating to return results as a list of nodes.
使用传递给该方法的xpath字符串调用evaluate,在类的构造函数中构建的dom树和常量指示将结果作为一组节点返回。
The members are initialized to the values specified in the initializer list before the body of the constructor executes.
在构造函数体现执行前,用初始化列表中指定的值初始化成员。
The constructor initializer is a list of member names, each of which is followed by that member's initial value in parentheses.
构造函数的初始化式是一系列成员名,每个成员后面是括在圆括号中的初始值。
The catch clause can handle exceptions thrown either from within the member initialization list or from within the constructor body.
catch子句既可以处理从成员初始化列表中抛出的异常,也可以处理从构造函数函数体中抛出的异常。
There is no constructor with a parameter list that matches the initialization.
没有所带参数列表与初始化匹配的构造函数。
There is no constructor with a parameter list that matches the initialization.
没有所带参数列表与初始化匹配的构造函数。
应用推荐