When I run
t = (one = "one", two = 2)
typeof(t)
in REPL, I get
NamedTuple{(:one, :two),Tuple{String,Int64}}
but when I run
t = (one = "one")
typeof(t)
I get String as type.
Is it possible to set a named tuple with just one named value so that I can access for example t[1] as well as t.one and get "one" returned?