迭代器

diédàiqì
noun

Measure Word

Meanings

  1. 1 iterator

Examples

HSK 6
Python de diédàiqì yòng next () huòqǔ xiàyígè yuánsù.
Python iterators use next() to get the next element.
HSK 7-9
Tōngguò diédàiqì biàn lì zhěnggè jíhé.
Traverse the entire collection through an iterator.

Tips

memory
迭 (alternate/take turns) + 代 (replace/generation) = 'take turns replacing' - exactly what an iterator does as it advances through elements. 器 turns it into a thing: '-er' / device.

Stroke Order

迭 dié
代 dài
器 qì