Alternative to Circular Array?

Yeah, sorry, i’m not a Great explainer :sweat_smile: i‘ll try to explain it better, and it‘s actually quite simple, just maybe not in code. :sweat_smile:

What i Need to do, is iterate indefinetly over many values. Then, for each value, i Need to run it through some code. This will return me either 0 or more values for this one value.

If the value is 0, i can‘t work with the Element any more, and Need to remove it from this loop. If it is 1, i can just replace it and everythings Fine. And if it’s more, like 2 values, i Need to replace the one i made my calculation with with the first and then put the others after it, But ignoring them for this Turn.

Basically exactly like a Tower where you pick the bottom Stone and place it on top, forever. Just, that if the Stone is Red, you don‘t put it back, if it‘s Green, it has a number on it, and you add as many as the number, and if it‘s Blue, you just put one ontop…