Function to go through an array of arrays?

Absolutely!
Let's just discuss what will be the difference.
I see you already did understand how array of arrays looks like.
arrayOfArrays = [[1,2,3],[4,5,6],[7,8,9]]
That way you should write down the base set. It should be a constant. It will never change.

Still you'll need a set which will change (elements are pulled out in every "bang" ). The current set.
And now the main difference - at the moment when there is no elements in current set, you'll need to make current set equal to base set. And that will do the trick for you :slight_smile: