About 12,100 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. Iterators in Python - GeeksforGeeks

    Jun 5, 2026 · Python provides built-in iterators for iterable objects such as strings, lists, tuples, and dictionaries. These iterators allow elements to be accessed one at a time using the next () function.

  3. Introduction to Iterators in C++ - GeeksforGeeks

    Jun 27, 2026 · Iterators provide several benefits when working with STL containers: Simplify container traversal without using indices. Work seamlessly with STL algorithms such as sort (), find (), and …

  4. Python Iterators - W3Schools

    To create an object/class as an iterator you have to implement the methods __iter__ () and __next__ () to your object. As you will learn in the Python Classes/Objects chapter, all classes have a function …

  5. Iterators and Iterables in Python: Run Efficient Iterations

    Jan 6, 2025 · 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, …

  6. Iterator library - cppreference.com

    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 library …

  7. itertools — Functions creating iterators for efficient looping

    1 day ago · The following functions all construct and return iterators. Some provide streams of infinite length, so they should only be accessed by functions or loops that truncate the stream.

  8. Iterators - C# | Microsoft Learn

    Nov 10, 2021 · Learn how to use built-in C# iterators and how to create your own custom iterator methods.

  9. Iterator (Java Platform SE 8 ) - Oracle

    Iterators differ from enumerations in two ways: Iterators allow the caller to remove elements from the underlying collection during the iteration with well-defined semantics.

  10. Iterators | Microsoft Learn

    Jan 28, 2022 · You can use the +, -, += and -= operators to move forward or backward a specified number of elements and to calculate the distance between iterators. You can compare bidirectional …