zip<R> method
Creates new collection of pairs from two collections
Implementation
Iterable<Pair<T, R>> zip<R>(Iterable<R> other) {
return length == other.length
? mapIndexed((index, item) => Pair(item, other.elementAt(index)))
: [];
}