✅ 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
5 Replies
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
which is what i'm trying to fix
how do you i suggest i remove them without moving the objects around for different iterations
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
mm i can try sorting everything by descending numerical value first and then delete it in that order
i'll try that thanks
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View