JuliaLang/julia — pull request #5176 by kmsquire (2013-12-16 21:02:37+00:00)
Title: RFC: Implementation of delindex! (Fixes #5118)

As noted in #5118, `delindex!` was previously proposed but never implemented. Here is an implementation `delindex!` for

* single indexes
* `Range1`
* general iterable of indices (must be sorted)

`delindex!` is more efficient than `splice!` when the items being removed from the collection are not needed and returning them is costly.

This PR also changes/fixes the return type of one of the `splice!` implementations for `BitArrays`, which was returning the modified array instead of the spliced-out region. cc:@carlobaldassi