Creates a tuple of length N where each element is of type T.
N
T
If N is a specific number literal, the result is a fixed-length tuple. If N is the general number type, the result falls back to T[].
number
T[]
The element type
The desired tuple length
type Result = Tuple<string, 3>;// ^?// [string, string, string] Copy
type Result = Tuple<string, 3>;// ^?// [string, string, string]
type Result = Tuple<boolean, number>;// ^?// boolean[] Copy
type Result = Tuple<boolean, number>;// ^?// boolean[]
type Result = Tuple<number, 0>;// ^?// [] Copy
type Result = Tuple<number, 0>;// ^?// []
Creates a tuple of length
Nwhere each element is of typeT.If
Nis a specific number literal, the result is a fixed-length tuple. IfNis the generalnumbertype, the result falls back toT[].