ITERATOR in Chinese translation

Examples of using Iterator in English and their translations into Chinese

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
Internal(built-in) classes that implement this interface can be used in a foreach construct and do not need to implement IteratorAggregate or Iterator.
实现此接口的内建类可以使用foreach进行遍历而无需实现IteratorAggregate或Iterator接口。
The end iterator is pointing not to the last object, however, but to the first invalid object, or the object directly following the last one.
尾部迭代器不指向最后一个对象,而是指向第一个无效对象,或是紧跟在最后一个对象后面的对象。
The better way is to employ an iterator, which is an object that implements either the Iterator or the ListIterator interface.
做到这一点最简单的方法是采用一个迭代器,它是一个对象,实现了Iterator接口或ListIterator接口。
When the generator iterator resumes, it picks up where it left off(in contrast to functions which start fresh on every invocation).
当生成器迭代器重新开始时,它在其中关闭的位置(与在每次调用时开始的新功能相反)进行选择。
We say that int* is a model of Input Iterator because int* provides all of the operations that are specified by the Input Iterator requirements.
我们说int*是InputIterator的类属实参,因为int*能提供InputIterator所要求的所有操作。
When the asynchronous generator iterator effectively resumes with another awaitable returned by__anext__(), it picks up where it left off.
当异步生成器迭代器有效地恢复与__anext__()返回的另一个等待时,它拾取在它离开的地方。
We describe the relationship between Input Iterator and Bidirectional Iterator by saying that Bidirectional Iterator is a refinement of Input Iterator.
我们这样来描述InputIterator和BidirectionalIterator的关系:BidirectionalIterator是InputIterator的refinement。
Once the exception is thrown, we exit from try and move onto except, which will start the iterator over again.
一旦意外出现,我们退出尝试并移至except,这将再次启动迭代器
To express a completely arbitrary lazy iterator in Java, you would need to write an Iterator that manually tracks its state.
要在Java中表示完全任意的惰性迭代器,您需要编写一个手动跟踪其状态的Iterator
The__iter()__ method acts similar, you can do operations(initializing, etc.), but must always return the iterator object itself.
Iter__()方法的行为类似,您可以执行操作(初始化等),但必须始终返回迭代器对象本身。
Note: The returned iterator will be in an uninitialized state, and you must run the iterator.
注意:返回的Iterator将处于未初始化状态,您必须先运行iterator.
When called initially, generator functions do not execute any of their code, instead returning a type of iterator called a Generator.
最初调用时,生成器函数不执行任何代码,而是返回一种称为Generator的迭代器
By far, the easiest way to do this is to employ an iterator, an object that implements either the Iterator or the Listiterator interface.
做到这一点最简单的方法是采用一个迭代器,它是一个对象,实现了Iterator接口或ListIterator接口。
Single value containers: Each element is stored independently in the container and it is accessed directly or with an iterator.
单值容器:每个对象在容器中被独立存储,并且其被直接或凭借迭代器访问。
This example illustrates the power of generators: if anything is an iterator, a generator can save the state of its iteration.
这个例子说明了生成器的能力:如果任何东西是迭代器,生成器可以保存其迭代的状态。
On each iteration, the iterator function is called to produce a new value, stopping when this new value is nil.
每次迭代,迭代器函数都会被调用以产生一个新的值,当这个值为nil时,循环停止。
Note that it's not possible to use an iterator of promises to achieve the same result.
请注意,使用promises的迭代器不可能达到相同的结果。
The Iterator provided in method iterator() is not guaranteed to traverse the elements of the PriorityBlockingQueue in any particular order.
方法iterator()中提供的迭代器并不保证以有序的方式遍历优先级队列中的元素。
Then we call filter to adapt that iterator into a new iterator that only contains elements for which the closure returns true.
接着调用filter将这个迭代器适配成一个只含有那些闭包返回true的元素的新迭代器。
The incoming method on TcpListener returns an iterator that gives us a sequence of streams(more specifically, streams of type TcpStream).
TcpListener的incoming方法返回一个迭代器,它提供了一系列的流(更准确的说是TcpStream类型的流)。
Results: 200, Time: 0.0235

Top dictionary queries

English - Chinese