struct
Zip2
<
S0
:
SequenceType
,
S1
:
SequenceType
>
Inheritance |
SequenceType, _SequenceType, _Sequence_Type
View Protocol Hierarchy →
|
---|---|
Associated Types |
A type whose instances can produce the elements of this sequence, in order.
Type alias inferred. |
Import |
|
Initializers
Construct an instance that makes pairs of elements from s0
and
s1
.
Declaration
init
(
_
s0
:
S0
,
_
s1
:
S1
)
Instance Methods
Return a generator over the elements of this sequence.
Complexity: O(1)
Declaration
func
generate
() -
>
Generator
A sequence of pairs built out of two underlying sequences, where the elements of the
i
th pair are thei
th elements of each underlying sequence.