Iterators

  • An iterator is a method that can invoke a block of code (using the yield command)