ZipGenerator2

struct ZipGenerator2<E0 : GeneratorType, E1 : GeneratorType>

A generator for the Zip2 sequence

Inheritance GeneratorType View Protocol Hierarchy →
Associated Types
Element = (E0.Element, E1.Element)

The type of element returned by next().

Import import Swift

Initializers

init(_:_:)

Construct around a pair of underlying generators.

Declaration

init(_ e0: E0, _ e1: E1)

Instance Methods

mutating func next()

Advance to the next element and return it, or nil if no next element exists.

Requires: next() has not been applied to a copy of self since the copy was made, and no preceding call to self.next() has returned nil.

Declaration

mutating func next() -> Element?