next

    Produces the next element in the prefix-while sequence.

    iOS
    13.0+
    macOS
    10.15+
    tvOS
    13.0+
    watchOS
    6.0+
    mutating func next() async rethrows -> Base.Element?

    If the predicate hasn’t yet failed, this method gets the next element from the base sequence and calls the predicate with it. If this call succeeds, this method passes along the element. Otherwise, it returns nil, ending the sequence.

    Other members in extension

    Typealiases

    Instance members