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