About 11,200 results
Open links in new tab
  1. Iterator - Wikipedia

    In computer programming, an iterator is an object that progressively provides access to each item of a collection, in order. [1][2][3] A collection may provide multiple iterators via its interface that provide …

  2. Introduction to Iterators in C++ - GeeksforGeeks

    3 days ago · We can use iterators to move through the contents of the container. They can be visualized as something similar to a pointer pointing to some location and we can access the content at that …

  3. Python Iterators - W3Schools

    There are two methods that you have to implement when you create an iterator, which two? Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, …

  4. Iterators and Iterables in Python: Run Efficient Iterations

    Understanding iterators and iterables in Python is crucial for running efficient iterations. Iterators control loops, allowing you to traverse arbitrary data containers one item at a time. Iterables, on the other …

  5. Iterators and generators - JavaScript - MDN

    Jul 29, 2025 · Iterators and Generators bring the concept of iteration directly into the core language and provide a mechanism for customizing the behavior of for...of loops.

  6. Iterator library - cppreference.com

    Jan 28, 2025 · Iterators are a generalization of pointers that allow a C++ program to work with different data structures (for example, containers and ranges (since C++20)) in a uniform manner. The iterator …

  7. Python Iterator: Example Code and How it Works

    Jun 24, 2024 · Now that we understand how iterators work, let’s look at how to use Python iterators. You’ll quickly find out that it feels and looks natural and isn’t difficult at all!

  8. Python Iterators (With Examples) - Programiz

    In this tutorial, you will learn about the Python Iterators with the help of examples.

  9. 18.2 — Introduction to iterators – Learn C++ - LearnCpp.com

    Feb 11, 2025 · An iterator is an object designed to traverse through a container (e.g. the values in an array, or the characters in a string), providing access to each element along the way. A container …

  10. Iterator - Python Wiki

    A: Iterators will typically need to maintain some kind of position state information (e.g., the index of the last element returned). If the iterable maintained that state itself, it would become inherently non …