I think there are two points that are worth clarifying.
So, this is really about producing an array to represent the set of items in another array, which is what you're actually doing. :)
EDIT: Actually, as Sets are iterated in insertion order, the relative orders are preserved, but not the indices.
Hahahaha how much preciousness. Let me guess, are u a functional programmer? Congratz
My intention here isn't to be precise with my words. It's totally possible to understand the "removing"
I'm sorry, Mr. English. But, thank you!!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think there are two points that are worth clarifying.
Any information due to ordering of items in the array is lost.So, this is really about producing an array to represent the set of items in another array, which is what you're actually doing. :)
EDIT: Actually, as Sets are iterated in insertion order, the relative orders are preserved, but not the indices.
Hahahaha how much preciousness. Let me guess, are u a functional programmer? Congratz
My intention here isn't to be precise with my words. It's totally possible to understand the "removing"
I'm sorry, Mr. English. But, thank you!!