Swift uses the first option, the resulting sequence will have a length equal to the shorter of the two inputs.
Creates a sequence of pairs built out of two underlying sequences.
func zip<Sequence1, Sequence2>(_ sequence1: Sequence1,_ sequence2: Sequence2 ) -> Zip2Sequence<Sequence1, Sequence2> where Sequence1 : Sequence, Sequence2 : Sequence
Returna…