Generates adjacent pairs from an input array.
The type of elements in the input array
Input array to generate pairs from
A generator yielding consecutive pairs of elements
[...pairwise([1, 2, 3, 4])] // [[1,2], [2,3], [3,4]] Copy
[...pairwise([1, 2, 3, 4])] // [[1,2], [2,3], [3,4]]
Generates adjacent pairs from an input array.