This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
An iterator must have a next() method returning {value, done} where done signals completion.
You've completed the free preview. Subscribe to unlock every lesson in every course.