✅ confusing list logic
So, I have a program that allows me delete objects in an array through the console, and the objects are all displayed to the console like in this image (AT THE BOTTOM)
And for the objects that I want to delete, I need to the 1-based indices of the objects I want to delete, or a range of indices that i want to delete
But I'm having a problem with the code: each iteration deletes objects before the next iteration/deletion, interrupting the next iteration/deletion
I'm looking for a way to remove all of the specified objects from the array all at once, or something else that achieves the same result
And for the objects that I want to delete, I need to the 1-based indices of the objects I want to delete, or a range of indices that i want to delete
But I'm having a problem with the code: each iteration deletes objects before the next iteration/deletion, interrupting the next iteration/deletion
I'm looking for a way to remove all of the specified objects from the array all at once, or something else that achieves the same result
