MapCursor

public final class MapCursor<Base : Cursor, Element> : Cursor

A Cursor whose elements consist of those in a Base Cursor passed through a transform function returning Element.

See Cursor.map(_:)

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

    Declaration

    Swift

    public func next() throws -> Element?