I am starting with NamedTuples becouse the shortly formula x.y[2] loock nice and cleary ! But getfield(x, Symbol(y[2])) is like normal code No way to short x.y[2] ?
Paul
Not the way your code is setup now. But you could reconsider your choice to reference into the named tuple by referencing into an array of strings that represent the field/key of the named tuple. Instead, maybe you can keep your data in an array and just reference directly to that:
kolumny = [rand(1020) for _ in 1:5]
kolumny[1]
kolumny[2]
...
I don’t know what you mean by “vector y”. I suggest you read this post and make a MWE. It’s really hard to follow what exactly you’re trying to do without a MWE or some context.