coretran
coretran copied to clipboard
Does `dDynamicArray` allow us to remove multiple elements at the same time?
Hi, @leonfoks
I'm testing the functionalities of idDynamicArray_Class
. And I know that I can remove one element of an array by using idDynamicArray%remove(index)
, where index
is an integer.
What I want to know is that whether dDynamicArray
allows us to remove multiple elements at the same time.
For example, I have an array called array_a = (/ 12, 36, 48, 24, 6, 8 /)
, and I want to delete array_a(1)
, array_a(4)
and array_a(5)
. Is there any way to achieve this goal?
Hey @WangYun1995 I did not implement the insert and remove methods with array arguments, since it would be a matter of using the scalar versions in a loop. I suppose I could implement it in house and have it be a little faster than looping outside the class methods! Or pull requests are always welcome if you feel up to the challenge?
All suggestions for content are welcome btw! :)
Thank you!