-
-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Using an example from the documentation:
julia> ca = ComponentArray(a=5, b=[4, 1], c=(a=2, b=[6, 30]))
ComponentVector{Int64}(a = 5, b = [4, 1], c = (a = 2, b = [6, 30]))
julia> ca[KeepIndex(:b)]
ComponentVector{Int64}(b = [4, 1])
julia> ca[KeepIndex(1)]
ComponentVector{Int64}(a = 5)
julia> ca[KeepIndex(2:3)]
ComponentVector{Int64}(b = [4, 1])
julia> ca[KeepIndex([2,3])]
ERROR: TypeError: in Type, in parameter, expected Type, got a value of type Vector{Int64}
How hard would it be to extend the KeepIndex functionality to more general types of indices?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels