Destructuring vectors of tuples: proper argument type?

You could use this

numbers = getindex.(mytuple, 1) 

or

[ getindex.(mytuple, i) for i in eachindex(first(mytuple)) ]

For the type information, how about

function unzip_new(tuple::Vector{T}) where {T <: Tuple}
    return map(collect, zip((Tuple(e) for e ∈ tuple)...))
end
1 Like