coretran icon indicating copy to clipboard operation
coretran copied to clipboard

Does `dDynamicArray` allow us to remove multiple elements at the same time?

Open WangYun1995 opened this issue 3 years ago • 2 comments

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?

WangYun1995 avatar Feb 10 '21 10:02 WangYun1995

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! :)

leonfoks avatar Feb 11 '21 04:02 leonfoks

Thank you!

WangYun1995 avatar Feb 12 '21 12:02 WangYun1995