4 ms·
I still don't quite see why you wouldn't just use a named struct, but you can create a alias for the NamedTuple type const MyAlias = NamedTuple{(:a, :b),Tu
by wallnuss 9y ago
I still don't quite see why you wouldn't just use a named struct, but you can create a alias for the NamedTuple type
const MyAlias = NamedTuple{(:a, :b),Tuple{Int64,Int64}}
MyAlias((2, 3)) # (a = 2, b = 3)