MapSequenceGenerator

struct MapSequenceGenerator<Base : GeneratorType, T>

The GeneratorType used by MapSequenceView and MapCollectionView. Produces each element by passing the output of the Base GeneratorType through a transform function returning T

Inheritance GeneratorType, SequenceType, _SequenceType, _Sequence_Type View Protocol Hierarchy →
Associated Types
Generator = MapSequenceGenerator<Base, T>

Type alias inferred.

Element = Generator.Element

Type alias inferred.

Import import Swift

Instance Methods

func generate()

MapSequenceGenerator is also a SequenceType, so it generate's a copy of itself

Declaration

func generate() -> MapSequenceGenerator<Base, T>
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() -> T?