StructureSwift5.9.0

    FlattenSequence

    A sequence consisting of all the elements contained in each segment contained in some Base sequence.

    @frozen struct FlattenSequence<Base> where Base : Sequence, Base.Element : Sequence

    The elements of this view are a concatenation of the elements of each sequence in the base.

    The joined method is always lazy, but does not implicitly confer laziness on algorithms applied to its result. In other words, for ordinary sequences s:

    • s.joined() does not create new storage

    • s.joined().map(f) maps eagerly and returns a new array

    • s.lazy.joined().map(f) maps lazily and returns a LazyMapSequence

    Citizens in Swift

    where Base:Sequence, Base.Element:Sequence

    Conformances

    Members

    Features

    Citizens in Swift

    where Base:Collection, Base.Element:Collection

    Conformances

    • protocol Collection

      A sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.

    Members

    Features

    Citizens in Swift

    where Base:BidirectionalCollection, Base.Element:BidirectionalCollection

    Conformances

    Members

    Features