The desired size of each partition (must be a positive integer literal).
The readonly array or tuple type to partition.
type P1 = List.Partition<2, [1, 2, 3, 4, 5]>; // readonly [[1, 2], [3, 4], [5]]
type P2 = List.Partition<3, [1, 2, 3, 4, 5, 6]>; // readonly [[1, 2, 3], [4, 5, 6]]
type P4 = List.Partition<number, [1, 2]>; // readonly (readonly (1 | 2)[])[]
type P3 = List.Partition<1, [1, 2]>; // readonly [[1], [2]]
Partitions a readonly array or tuple
Tinto sub-arrays/tuples of lengthN. Delegates toTuple.Partition.