Hi all,
I wonder why zip of named tuples does not take into the account names of variables. Is this a desired behavior? Is there an alternative I am not aware of, which does?
julia> x, y = (a = 1, b = 2), (b = 4, a = 3);
julia> map(i -> i[1] + i[2], zip(x,y))
2-element Array{Int64,1}:
5
5
but
julia> x, y = (a = 1, b = 2), (a = 3, b = 4);
julia> map(i -> i[1] + i[2], zip(x,y))
2-element Array{Int64,1}:
4
6
i.e order matters but not names.
Thanks for explanation in advance.
Tomas