Iterator Pattern definition


#1

So I just ventured in to the lesson plan for Unit 3 Lesson 14 and find that one of the Objectives is for students to be able to “Apply an iterator pattern to variables or properties in a loop”.

Please tell me where the term “iterator pattern” is defined.

Thank you,
Beth


#2

Beth,

I believe it just means a pattern that iterates and changes on each iteration. On the Bubble 2 - Exemplar, an iteration would be the variable that changes with the mouse shake that finally reaches a point which the gift would “open”. I believe the basic idea is to show students know how to change variables using a loop.

Let me know if that makes sense - or if you have additional questions!
Brad