14.04.2017, 07:20
You're right but what I've posted right there is the testing code I was trying, I needed foreach because instead of making other class-specific array which will just be a waste of memory I decided to store the indexes of the elements of a specific sub-class on his specific iterator.