Your Godot version:
Godot 4.6
Issue description:
Class: Array
I was searching how to iterate through an array to remove/erase some of its elements. When I first read the docs, I understood that erasing while iterating on an array is not possible at all. The first comment of this reddit post advises to loop backward and to use remove_at. I think it would be nice to indicate in the docs that is possible to remove element this way, eventually directly providing a code snippet.
URL to the documentation page (if already existing):
https://docs.godotengine.org/en/4.6/classes/class_array.html#class-array-method-erase
Your Godot version:
Godot 4.6
Issue description:
Class: Array
I was searching how to iterate through an array to remove/erase some of its elements. When I first read the docs, I understood that erasing while iterating on an array is not possible at all. The first comment of this reddit post advises to loop backward and to use
remove_at. I think it would be nice to indicate in the docs that is possible to remove element this way, eventually directly providing a code snippet.URL to the documentation page (if already existing):
https://docs.godotengine.org/en/4.6/classes/class_array.html#class-array-method-erase