Obtain multiple components from a ComponentArray

You can do

julia> getindex.(Ref(ca), (:x1, :x3))
([1, 2], [100, 200])
3 Likes