# Elegant way of exclusive indexing

**URL:** <https://discourse.julialang.org/t/elegant-way-of-exclusive-indexing/76894>\
**Category:** General Usage\
**Tags:** indexing, arrays\
**Created:** [February 22, 2022, 9:24am UTC](https://discourse.julialang.org/t/elegant-way-of-exclusive-indexing/76894 "2022-02-22T09:24:31Z")\
**Posts on this page:** 2\
**Page:** 3

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [February 26, 2022, 4:13pm UTC](https://discourse.julialang.org/t/elegant-way-of-exclusive-indexing/76894/41 "2022-02-26T16:13:08Z")

</div>

> [@TheLateKronos](#):
>
> `deleteat!(my_vector|>copy, inds)`

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.

---

<div class="post-metadata">

**Author:** ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Post date:** [February 26, 2022, 4:34pm UTC](https://discourse.julialang.org/t/elegant-way-of-exclusive-indexing/76894/42 "2022-02-26T16:34:17Z")

</div>

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?

[Previous page](https://discourse.julialang.org/t/elegant-way-of-exclusive-indexing/76894.md?page=2)
