Take the first N elements of a tuple.
Tuple type
Number of elements to take
Produces a new tuple containing the first N elements from the input tuple. If N exceeds the tuple length, returns the entire tuple.
type T = TupleTake< [ 1, 2, 3, 4 ], 2 >; // [ 1, 2 ] Copy
type T = TupleTake< [ 1, 2, 3, 4 ], 2 >; // [ 1, 2 ]
Take the first N elements of a tuple.