Scala Iterator zip() method with example
The zip() method belongs to the concrete value member of the class Abstract Iterator. It is defined in the class Iterator.
Method Definition: val result = iter.zip(iter1)
Return Type: It returns a new Scala iterator holding pairs of corresponding elements in the iterator and the size of the number of elements returned is minimum of the sizes of both the iterators.