Functions
The following functions are available globally.
-
Returns an iterator that iterates over pairs of elements in
firstSequence
andsecondSequence
. SeePairIterator
.Declaration
Swift
public func pairs<T, U>(_ firstSequence: T, _ secondSequence: U) -> PairIterator<T, U>.Iterator where T : Sequence, U : Sequence
Parameters
firstSequence
The first sequence to iterate over.
secondSequence
The second sequence to iterate over.
Return Value
A PairIterator iterating over the pairs of the sequences.