Download for Windows Premium
Publiciteit
iteratora
iterator
Musi także istnieć sposób utworzenia iteratora tak, by wskazywał na pierwszy element, oraz sposób określenia, kiedy iterator wyczerpał wszystkie elementy w kolekcji.
There must also be a way to create an iterator so it points to some first element as well as some way to determine when the iterator has exhausted all of the elements in the container.
Na początku nie chciałem nic robić z samymi loaderami, ale po przeczytaniu tego artykułu i spojrzeniu na interfejs oraz implementację Dataloadera, pomyślałem, że mogę zrobić coś prostszego; coś, co nie ma żadnego samplera czy iteratora danych, które mogłyby potencjalnie zwalniać samo ładowanie.
But, as I read [this article], and looked at the interface and implementation of the Dataloader, I thought I can make something simpler, which would not have any sampler or data iterator, which could be potentially slowing down the data loading.
W Magiku metody generatora są zwane metodami iteratora.
In Magik generator methods are called iterator methods.
Użycie iteratora izoluje od tego rodzaju problemów.
By using an iterator one is isolated from these sorts of consequences.
Klasa iteratora jest zwykle projektowana wraz z klasą odpowiadającej mu kolekcji i jest z nią ściśle powiązana.
An iterator class is usually designed in tight coordination with the corresponding container class.
Podstawowym celem iteratora jest pozwolić użytkownikowi przetworzyć każdy element w kolekcji bez konieczności zagłębiania się w jej wewnętrzną strukturę.
The primary purpose of an iterator is to allow a user to process every element of a container while isolating the user from the internal structure of the container.
Możesz, opcjonalnie, określić drugi parametr przy tworzeniu swojego iteratora, typu boolean, który określa czy chcesz tylko zwracać klucze jako wynik metody next(), czy także wartości.
You can, optionally, specify a second parameter when creating your iterator, which is a boolean value that indicates whether or not you only want the keys returned each time you call its next() method.
Iterator można rozumieć jako rodzaj wskaźnika udostępniającego dwie podstawowe operacje: odwołanie się do konkretnego elementu w kolekcji (dostęp do elementu) oraz modyfikację samego iteratora tak, by wskazywał na kolejny element (sekwencyjne przeglądanie elementów).
An external iterator may be thought of as a type of pointer that has two primary operations: referencing one particular element in the object collection (called element access), and modifying itself so it points to the next element (called element traversal).
W normalnym użyciu, obiekty iteratora są "niewidzialne"; nie jest konieczne bezpośrednie operowanie na nich. Zamiast tego, możesz użyć JavaScriptowego wyrażenia for... in oraz for each... in, by pobrać wszystkie klucze i/lub wartości obiektów.
In normal usage, iterator objects are "invisible"; you won't need to operate on them explicitly, but will instead use JavaScript's for... in and for each... in statements to loop naturally over the keys and/or values of objects.
Er zijn geen resultaten gevonden voor deze term.

Synoniemen voor iteratora in het Pools

Publiciteit

Resultaten: 9. Exact: 9. Verstreken tijd: 11 ms.