Generate an iterator over the pairwise combinations of an array.
The array to combine.
The list of combinations as tuples.
Generate an iterator over the pairwise combinations of an array.