A sequence of pairs built out of two underlying sequences.
- Xcode 7.0+
- Swift Standard Library
Zip2Sequence instance, the elements of the ith pair are the ith elements of each underlying sequence. To create a
Zip2Sequence instance, use the
The following example uses the
zip(_: function to iterate over an array of strings and a countable range at the same time: