用iterator造句子,“iterator”造句

來源:國語幫 1.81W

You can utilize the generator either manually or as an iterator.

AL0 - This pane is part of a spatial iterator used to show the caption portion of the icon navigation link.

Most frequently, however, you are likely to use a generator as an iterator, which is even more concise (and again looks just like an old-fashioned sequence).

To illustrate, Figure 5 shows the state of a hypothetical iterator that can move back one, two, three, or four places, but no more, because that would require accessing the previously visited leaf.

Creates an iterator to loop through.

It is natural to say that the iterator is owned by the container, and therefore, that the container has special access privileges to the iterator.

The iterator pattern provides a way to encapsulate looping through a collection or array of objects.

By breadth, I mean the features that were beyond the scope of this article, such as abstract classes, interfaces, the iterator interface, reflection, exceptions, and object cloning.

An iterator is powerful because you can add new types of items through which to iterate, and you don't have to change the code that loops through the items.

With enough contortions, you can get an item for every type of sequence/iterator.

And, in most data-processing routines, sequential access to a rope's characters is what's required, in which case a rope iterator can provide amortized o (1) access speed.

iterator造句

The pre-call to () preserves the original iterator.

peek() can find out the next event, if any, to be returned by the iterator without advancing it.

The digits following the pane name indicate the spatial iterator value, starting from the outermost spatial iterator working inward.

We refer to a type as an iterator if it supports a certain set of actions. Those actions let us navigate among the elements of a container and let us access the value of those elements.

The main problem is that we create a new copy of the iterator every time.

Since it is implemented as an anonymous function within another function, one could do some preliminary checks and calculations before creating the iterator.

熱門標籤