# 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:** 1\
**Showing post:** 41

<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.

---

_[View the full topic](https://discourse.julialang.org/t/elegant-way-of-exclusive-indexing/76894)._
