iterator

[美國]/ɪtəˈreɪtə/
[英國]/ˈɪtəˌreɪtər/
詞頻: 非常高

中文釋義

n.(計算)用以遍歷集合中項目之物件或例行程序,依次返回每個項目。

短語搭配

for iterator

Traditional Chinese_translation

iterator object

Traditional Chinese_translation

each iterator

Traditional Chinese_translation

iterator function

Traditional Chinese_translation

using iterator

Traditional Chinese_translation

iterator error

Traditional Chinese_translation

iterator type

Traditional Chinese_translation

iterator loop

Traditional Chinese_translation

iterator design

Traditional Chinese_translation

iterator pattern

Traditional Chinese_translation

例句

the iterator allows you to loop through each element in the collection.

迭代器允許你遍歷集合中的每個元素。

you can use an iterator to access elements without exposing the underlying structure.

你可以使用迭代器來訪問元素,而無需暴露底層結構。

the iterator pattern is commonly used in software design.

迭代器模式在軟體設計中常被使用。

always check if the iterator has next element before proceeding.

在繼續之前,請始終檢查迭代器是否有下一個元素。

the list iterator provides bidirectional traversal.

列表迭代器提供雙向遍歷。

you need to initialize the iterator before using it.

在使用迭代器之前,需要先初始化它。

the iterator returns null when it reaches the end of the sequence.

當迭代器到達序列末尾時,會返回 null。

each iterator maintains its own position in the collection.

每個迭代器都會在集合中維持自己的位置。

the iterator can be reset to traverse the collection again.

迭代器可以重置以再次遍歷集合。

using an iterator is more efficient than indexed access in some cases.

在某些情況下,使用迭代器比使用索引訪問更有效率。

the iterator interface defines standard methods for traversal.

迭代器介面定義了用於遍歷的標準方法。

you can create multiple iterators for the same collection.

你可以為同一個集合創建多個迭代器。

下載 App 以解鎖完整內容

想更有效率地學習單字嗎?下載 DictoGo 應用程式,享受更多單字記憶與複習功能!

立即下載 DictoGo