What is the translation of " AN ITERATOR " in Chinese?

迭代器
一个iterator

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

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
What is an Iterator?
那么什么是iterator?
What happens here is, on line four, we have an iterator.
在第4行,我们创建iterator
To use an iterator.
解决方法是使用iterator.
We could also do it using an iterator.
当然,我们也可以用iterator:.
Get value of an iterator, int x=*it;
从迭代器取值,intx=*it;.
We have seen that the for statement is such an iterator.
我们已经看到for语句是这样的iterator
So what's an iterator?
那么什么是iterator?
An iterator is an object with a next() method.
迭代器是一个带有next()方法的对象。
So what is an Iterator?
那么什么是iterator?
An iterator object is responsible for keeping track of the current element;
迭代器对象负责跟踪当前的元素;
The other way is to use an iterator.
解决方法是使用iterator.
You can get an iterator from that.
你可以从任何一个iterable得到一个iterator
An iterator is an object with a next method.
Iterator是一个具有next方法的对象,.
You can get an iterator from that.
所以你可以从每一个iterable得到一个iterator
Each Java Collection contains the iteratormethod that returns an Iterator instance.
每一个JavaCollection都包含iterator方法来返回一个Iterator实例。
Returns an Iterator over the elements of the source of this grouping.
返回一个此数据集的元素上的Iterator.
And of course you can get an iterator from all three.
你可以从任何一个iterable得到一个iterator
An iterator is an object with a next(Python 2) or__next__(Python 3) method.
迭代器对象是一个含有next(Python2)或者__next__(Python3)方法的对象。
And of course you can get an iterator from all three.
所以你可以从每一个iterable得到一个iterator
Two common operations on an iterator's output are 1 performing some operation for every element, 2 selecting a subset of elements that meet some condition.
迭代器输出的两个常见操作是:1对每个元素执行一些操作;2选择满足某些条件的元素的子集。
The for in construct is able to interact with an Iterator in several ways.
Forin结构能以几种方式与Iterator互动。
Let's see what an iterator implementation looks like in practice.
让我们来看看一个迭代器实现在实践中看起来是什么样的。
To express a completely arbitrary lazy iterator in Java,you would need to write an Iterator that manually tracks its state.
要在Java中表示完全任意的惰性迭代器,您需要编写一个手动跟踪其状态的Iterator
The incoming method on TcpListener returns an iterator that gives us a sequence of streams(more specifically, streams of type TcpStream).
TcpListener的incoming方法返回一个迭代器,它提供了一系列的流(更准确的说是TcpStream类型的流)。
For example, consider the following code, which uses an iterator to walk the keys of a hash in Java.
例如,考虑如下这段代码,使一个iterator遍历一个Java中的哈希表的关键字。
The easiest way to do this is to employ an iterator, which is an object that implements either the Iterator or the ListIterator interface.
做到这一点最简单的方法是采用一个迭代器,它是一个对象,实现了Iterator接口或ListIterator接口。
Sequence unpacking also supports iterators: if you know an iterator will return N elements, you can unpack them into an N-tuple:.
序列解包也支持迭代器:如果你知道迭代器将返回N个元素,则可以将它们解包为N元组:.
A generator is also an iterator, but what is an iterator?.
Generator是个iterator,同时是个iterable?
This is because, a forloop takes an iterator and iterates over it using next() function.
这是因为,for循环需要一个迭代器,并使用next()函数进行迭代。
Iterable should be in a series, an iterator, or various other object that backs iteration.
Iterable必须是一个序列,或iterator,或其他支持迭代的对象。
Results: 75, Time: 0.0306

Word-for-word translation

Top dictionary queries

English - Chinese