Open femtotrader opened 6 years ago
It seems to be possible using:
julia> using NamedTuples: make_tuple
julia> make_tuple([:x,:y])(1,2)
(x = 1, y = 2)
Is there a better method to do this?
Maybe we should improve doc?
In #52 you can do: NamedTuple{(:x, :y)}(1, 2)
. Does that seem better to you?
This syntax is much nicer. We can close this issue when #52 will be merged
Hello,
A NamedTuple can be created using
but I wonder if there is a way to create a NamedTuple using a tuple of symbols and a tuple of values. Something like:
Any idea?