THE ITERATOR in Chinese translation

Examples of using The iterator in English and their translations into Chinese

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
Methods that call next are called consuming adaptors, because calling them uses up the iterator.
这些调用next方法的方法被称为消费适配器(consumingadaptors),因为调用他们会消耗迭代器
On each iteration, the iterator function is called to produce a new value, stopping when this new value is nil.
每次迭代,迭代器函数都会被调用以产生一个新的值,当这个值为nil时,循环停止。
The Iterator provided in method iterator() is not guaranteed to traverse the elements of the PriorityBlockingQueue in any particular order.
方法iterator()中提供的迭代器并不保证以有序的方式遍历优先级队列中的元素。
Iterating over an iterator is said to consume the iterator, because it is generally only possible to do once.
迭代一个迭代器被称为消耗了这个迭代器,因为它通常只能执行一次。
The Iterator provided in method PriorityQueue. iterator() is not guaranteed to traverse the elements of the priority queue in any particular order.
方法iterator()中提供的迭代器并不保证以有序的方式遍历优先级队列中的元素。
The iterator returned by this method first yields all of the elements of the provider cache, in instantiation order.
此方法返回的迭代器首先得到所有提供者缓存的元素,在实例化顺序。
Its members are instances of Polygon and are accessed via the geoms property or via the iterator protocol using in or list().
它的成员是Polygon的实例,可以通过geoms或通过用in或list()迭代协议获得。
Other methods defined on the Iterator trait, known as iterator adaptors, allow us to change iterators into different kind of iterators.
Iteratortrait中定义了另一类方法,被称为迭代器适配器(iteratoradaptors),他们允许我们将当前迭代器变为不同类型的迭代器。
The iterator generated in this example has three different values to return on successive calls to the next() method: first 1, then 2, and finally 3.
本例中的生成的迭代器在next()方法调用后成功地返回了三个值:先是1,接着是2,最后是3。
In the conceptual language, the iterator in std::list does not satisfy the constraint of the concept of random iterators in std::sort.
用概念的语言来说就是:std::list中的迭代器不满足std::sort中随机迭代器这个概念的约束(Constraint)。
First, the iterator protocol- when you write.
首先,迭代器协议-当你写.
First, the iterator protocol- when you write.
首先,迭代器协议-写的时候.
(The iterator itself doesn't start running until MoveNext is called).
迭代器本身没有运行,只到调用MoveNext才会运行)。
The compiler can only guarantee that an Object will be returned by the iterator.
因为编译器仅仅能保证iterator返回的是Object类型。
You will run into obvious problems if the iterator is infinite;
很显然,如果迭代器是无限的,这么做你就会遇到问题;.
Keep calling the next() method on the iterator returned from step 1.
继续打电话给next()从步骤1返回的迭代器上的方法。
Next() to start the task and recursively calls step() until the iterator is complete.
Next()让任务开始进行并递归调用step()直到迭代器运行完毕。
For a full list of the different iterators and consumers, check out the iterator module documentation.
关于迭代器和消费者的不同点的完整列表,你可以查阅迭代器模块文档。
The example in Listing 13-14 separates the creation of the iterator from the use of the iterator in the for loop.
示例13-14中的例子将迭代器的创建和for循环中的使用分开。
The iterator function receives two arguments, value and acc, and should return a tuple[value, acc].
代函数接收两个参数,value和acc,返回一个元组[value,acc]。
Results: 323, Time: 0.0272

The iterator in different Languages

Word-for-word translation

Top dictionary queries

English - Chinese