struct MapSequenceView<Base : SequenceType, T>

A SequenceType whose elements consist of those in a Base SequenceType passed through a transform function returning T. These elements are computed lazily, each time they're read, by calling the transform function on a base element.

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

Type alias inferred.

Element = Generator.Element

Type alias inferred.

Import import Swift

Instance Methods

func generate()

Return a generator over the elements of this sequence.

Complexity: O(1)


func generate() -> MapSequenceGenerator<Base.Generator, T>