How to shift arrays in a carousel.

Yah I got nested structs, and I get that I can pop the stack to rotate it. What I’m having trouble with is actually triggering the rotation of the next array.

Right now I even abandoned the idea of rotating the sub array itself and I’m using incidences instead. It’s easier to check if the index is the same length as the sub array to confirm if it did a full resolution, instead of keeping track of the sub array items.

If you know how I could cleanly rotate the next array when the current does a full resolution please share.