New course! Every coder should learn Generative AI!
Try a free lesson0
what does iterators do?
2 Answers
+ 1
Traverse through all elements of a collection. And elements can also be modified and removed from the collection while traversal.
0
iterators can process in a loop in forward direction..