SwiftstructAsyncAlgorithmsInternal

struct AsyncAlgorithmsInternal.AsyncRemoveDuplicatesSequence

Structure

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

inherits{}

Members 6

  1. fieldlet base: A
  2. fieldlet predicate: @Sendable (A.AsyncSequence.Element, A.AsyncSequence.Element) async -> Bool
  3. funcmakeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncRemoveDuplicatesSequence<A>.Iterator
  4. typealiastypealias AsyncIterator = AsyncAlgorithmsInternal.AsyncRemoveDuplicatesSequence<A>.Iterator
  5. typealiastypealias Element = A.Swift.AsyncSequence.Element
  6. typealiastypealias Failure = A.Swift.AsyncSequence.Failure
struct AsyncRemoveDuplicatesSequence<A> where A: Swift.AsyncSequence {
    struct Iterator {
        var iterator: A.AsyncIterator
        let predicate: @Sendable (A.Element, A.Element) async -> Swift.Bool
        var last: A.Element?

        init(iterator: A.AsyncIterator, predicate: @escaping @Sendable (A.Element, A.Element) async -> Swift.Bool)

        func next() async throws -> A.Element?
    }
    let base: A
    let predicate: @Sendable (A.Element, A.Element) async -> Swift.Bool

    func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncRemoveDuplicatesSequence<A>.Iterator
}