Elegant way of exclusive indexing

Have you benchmarked the nice deleteat() function written by @GunnarFarneback, edited with unsafe_copyto!()?

In my limited testing it worked on par or faster than deleteat!() and with no need to copy the argument.

No, I have not. I have to admit, I am not particularly interested in a multiline function for this. I am interested in general quick-and-easy solutions, which exist. The only way I think that it is interesting, is if it would be added to Base - do you think that is a possibility?

If the question is for me the answer is, I have no clue.

1 Like