Sign inSign in
ConceptSystems & CS

Iterators

Procedures that are called and yield values one after another until finished.
as Barbara Liskov defines itMITThe wording closest to all 3 definitions
Watch it explained

Know first

Named as a prerequisite by the lectures that define this. The number is how many say so. A grey one has no page yet.

Abstract data type1Classes1Classes and objects1Collections1Control structures1Enhanced for loop1For loop1Generator1

Opens up

Concepts that name this one as a prerequisite.

Lecturers

3

Each in their own terms, from the easiest level.

  • David J. Malan

    Harvard University · Introductory

    An object returned by yield that allows code to iterate over generated values one element at a time.
  • Josh Hug

    UC Berkeley · Undergraduate

    An interface providing an API with hasNext and next methods to fetch values from a collection one by one.
    • 8:24Iterators, Iterable, equals, toString

Lectures that assume it

3

Connections

12

The lectures that define it or assume it, and the concepts next to it.

3 lecturers. Definitions are written by AI from each lecture’s transcript. A time with a play mark starts the lecture at the moment the lecturer says it.