Julia Programming Language
Easiest way to delete indices from Vector{Vector{}}
New to Julia
arrays
,
vector
GunnarFarneback
January 17, 2022, 7:02am
2
If mutation is fine
deleteat!.(a, Ref(ind))
otherwise
deleteat!.(copy.(a), Ref(ind))
4 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Newbie delete elements from array question
New to Julia
10
658
February 21, 2024
Vector{Vector} indices
General Usage
indexing
,
arrays
22
2670
September 19, 2022
Trim a vector in place
General Usage
arrays
1
140
July 24, 2024
Remove an element from an array without changing the original
General Usage
array
5
3651
June 17, 2021
Is there a clean one-liner to subset a vector of vectors?
New to Julia
question
,
indexing
,
arrays
6
655
December 7, 2023