FlattenCursor

public final class FlattenCursor<Base: Cursor> : Cursor where Base.Element: Cursor

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

See Cursor.joined(), Cursor.flatMap(:), Sequence.flatMap(:)

  • Advances to the next element and returns it, or nil if no next element exists.

    Declaration

    Swift

    public func next() throws -> Base.Element.Element?