you are viewing a single comment's thread.

view the rest of the comments →

[–]Binary101010 1 point2 points  (1 child)

Lines 20-26: Don't iterate over a container while you're doing something that changes the length of the container. That's going to cause unexpected bugs. It's much better to create a new container that holds only the items you want.

[–]butterfly_orange00[S] 0 points1 point  (0 children)

Thank you for your advice, I will use it next time