For each loop on TArray

Many ways you can do that, some people have posted some examples. You can also do it with loop repetitions to get to skip positions and continue to insert from this to that, and then use some other index. This way you are like a sniper inside the array, writing only where you want and in an automated way.