I recently became aware of StructArrays (Array of tuples to tuple of arrays - #3 by piever) that makes life much easier especially when using the dot syntax.
When converting an array of (unnamed) tuples to StructArray, is it possible to name the fields other than x1, x2 etc… or perhaps add this kind of feature?
E.g. it would behave like this:
julia> a=[(1,2),(3,4)]
2-element Array{Tuple{Int64,Int64},1}:
(1, 2)
(3, 4)
julia> b=StructArray([:k, :l], a)
2-element StructArray{Tuple{Int64,Int64},1,NamedTuple{(:k, :l),Tuple{Array{Int64,1},Array{Int64,1}}}}:
(1, 2)
(3, 4)
The above is just a minimal example (of course I could have used a named tuple in the first place), the real need arises when using e.g. a function that returns unnamed tuples and the dot syntax creates an array of unnamed tuples.