From a1a08c7360781c916c507fbc104fe5bb26bab2cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogumi=C5=82=20Kami=C5=84ski?= Date: Fri, 11 Feb 2022 15:07:24 +0100 Subject: [PATCH] Fix docstring for keepat! `keepat!` also works with `BitVector` --- base/array.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/array.jl b/base/array.jl index 5b9b5b25dcf15..cf5bbc05e412a 100644 --- a/base/array.jl +++ b/base/array.jl @@ -2586,6 +2586,7 @@ end """ keepat!(a::Vector, inds) + keepat!(a::BitVector, inds) Remove the items at all the indices which are not given by `inds`, and return the modified `a`. @@ -2610,6 +2611,7 @@ keepat!(a::Vector, inds) = _keepat!(a, inds) """ keepat!(a::Vector, m::AbstractVector{Bool}) + keepat!(a::BitVector, m::AbstractVector{Bool}) The in-place version of logical indexing `a = a[m]`. That is, `keepat!(a, m)` on vectors of equal length `a` and `m` will remove all elements from `a` for which