Iterator

An Iterator object is one that can generate new values through calling next repeatedly.

Required Fields

A method that returns the next value.

A method that returns true if it can produce a value with next.

print "hello world"