Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WangYun1995 opened this issue Feb 10, 2021 · 2 comments

Comments

@WangYun1995
Copy link

WangYun1995 commented Feb 10, 2021

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?

@leonfoks
Copy link
Owner

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

@WangYun1995
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants