FilterGenerator

struct FilterGenerator<Base : GeneratorType>

The GeneratorType used by FilterSequenceView and FilterCollectionView

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

Type alias inferred.

Element = Generator.Element

Type alias inferred.

Import import Swift

Instance Methods

func generate()

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

Declaration

func generate() -> FilterGenerator<Base>
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() -> Base.Element?