The number of elements to take. Only a single numeric literal pins a
length; a union of literals and number alike answer an unsized array,
which every possible result satisfies.
The readonly tuple type.
A new readonly tuple type containing the first N elements. If N is larger than the length of T, returns T.
type TK1 = Tuple.Take<2, [1, 2, 3]>; // readonly [1, 2]
type TK2 = Tuple.Take<5, [1, 2, 3]>; // readonly [1, 2, 3]
type TK3 = Tuple.Take<0, [1, 2, 3]>; // readonly []
type TK4 = Tuple.Take<1 | 2, [1, 2, 3]>; // readonly (1 | 2 | 3)[]
type TK5 = Tuple.Take<number, [1, 2, 3]>; // readonly (1 | 2 | 3)[]
Takes the first
Nelements from a readonly tupleT.