SwiftextensionCombine

extension Swift.Optional

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

generic{}

A

extends{}

  • arggenericParameterA

Members 1

  1. varvar publisher: A?.Publisher { get }
extension A? {
    struct Publisher {
        class Inner<A1> where A == A1.Input, A1: Combine.Subscriber, A1.Failure == Swift.Never {
            var downstream: A1?
            let output: A
        }
        let output: A?

        init(_: A?)

        func allSatisfy(_: (_: A) -> Swift.Bool) -> Swift.Bool?.Publisher
        func compactMap<A1>(_: (_: A) -> A1?) -> A1?.Publisher
        func ignoreOutput() -> Combine.Empty<A, Swift.Never>
        func replaceEmpty(with: A) -> Combine.Just<A>
        func replaceError(with: A) -> A?.Publisher
        func removeDuplicates(by: (A, A) -> Swift.Bool) -> A?.Publisher
        func map<A1>(_: (_: A) -> A1) -> A1?.Publisher
        func max(by: (A, A) -> Swift.Bool) -> A?.Publisher
        func min(by: (A, A) -> Swift.Bool) -> A?.Publisher
        func drop(while: (_: A) -> Swift.Bool) -> A?.Publisher
        func last(where: (_: A) -> Swift.Bool) -> A?.Publisher
        func last() -> A?.Publisher
        func scan<A1>(_: A1, _: (A1, A) -> A1) -> A1?.Publisher
        func count() -> Swift.Int?.Publisher
        func first(where: (_: A) -> Swift.Bool) -> A?.Publisher
        func first() -> A?.Publisher
        func retry(_: Swift.Int) -> A?.Publisher
        func filter(_: (_: A) -> Swift.Bool) -> A?.Publisher
        func output(at: Swift.Int) -> A?.Publisher
        func output<A1>(in: A1) -> A?.Publisher where A1: Swift.RangeExpression, A1.Bound == Swift.Int
        func prefix(while: (_: A) -> Swift.Bool) -> A?.Publisher
        func prefix(_: Swift.Int) -> A?.Publisher
        func reduce<A1>(_: A1, _: (A1, A) -> A1) -> A1?.Publisher
        func collect() -> [A]?.Publisher
        func receive<A1>(subscriber: A1) where A == A1.Input, A1: Combine.Subscriber, A1.Failure == Swift.Never
        func contains(where: (_: A) -> Swift.Bool) -> Swift.Bool?.Publisher
        func dropFirst(_: Swift.Int) -> A?.Publisher
    }
}