Casts an array to MaxLengthTuple<MaxLength, E> after checking that it has
at most maxLength elements.
This is the structural counterpart of asMaxLengthArray; see
asFixedLengthTuple for when to prefer which.
The maximum number of elements (inclusive).
The maximum number of elements (inclusive).
xs typed as MaxLengthTuple<MaxLength, Xs[number]> & Xs.
Casts an array to
MaxLengthTuple<MaxLength, E>after checking that it has at mostmaxLengthelements.This is the structural counterpart of
asMaxLengthArray; see asFixedLengthTuple for when to prefer which.