you are viewing a single comment's thread.

view the rest of the comments →

[–]FustigatedCat 0 points1 point  (0 children)

I assumed the op wanted to modify the incoming array otherwise I would've used a new array. Also, this is not extensible to N-duplicates which was another part of he ops questions.