SwiftextensionPriMLCore

extension Swift.Collection

Structure

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

extends{}

Members 11

  1. funcCollection.asyncFirst(where: (A.Element) async throws -> Bool) async throws -> A.Element?
  2. funcCollection.asyncMap<A>((A.Element) async throws -> A1) async throws -> [A1]
  3. funcCollection.asyncMap<A>((A.Element) async -> A1) async -> [A1]
  4. funcCollection.asyncMax(by: (A.Element, A.Element) async throws -> Bool) async throws -> A.Element?
  5. funcCollection.asyncMin(by: (A.Element, A.Element) async throws -> Bool) async throws -> A.Element?
  6. funcCollection.asyncReduce<A>(into: A1, _: (inout A1, A.Element) async throws -> ()) async throws -> A1
  7. funcCollection.asyncReduce<A>(A1, (A1, A.Element) async throws -> A1) async throws -> A1
  8. funcCollection.asyncSorted(by: (A.Element, A.Element) async throws -> Bool) async throws -> [A.Element]
  9. funcCollection.concurrentAllSatisfy(concurrency: Int, _: (A.Element) async throws -> Bool) async throws -> Bool
  10. funcCollection.concurrentFilter(concurrency: Int, _: (A.Element) async throws -> Bool) async throws -> [A.Element]
  11. funcCollection.concurrentMap<A>(concurrency: Int, _: (A.Element) async throws -> A1) async throws -> [A1]
extension Swift.Collection {
    func asyncFirst(where: (_: Self.Element) async throws -> Swift.Bool) async throws -> Self.Element?
    func asyncReduce<A1>(into: A1, _: (inout A1, Self.Element) async throws -> ()) async throws -> A1
    func asyncReduce<A1>(_: A1, _: (A1, Self.Element) async throws -> A1) async throws -> A1
    func asyncSorted(by: @escaping (Self.Element, Self.Element) async throws -> Swift.Bool) async throws -> [Self.Element]
    func concurrentMap<A1>(concurrency: Swift.Int, _: @escaping (_: Self.Element) async throws -> A1) async throws -> [A1]
    func concurrentFilter(concurrency: Swift.Int, _: @escaping (_: Self.Element) async throws -> Swift.Bool) async throws -> [Self.Element]
    func concurrentAllSatisfy(concurrency: Swift.Int, _: @escaping (_: Self.Element) async throws -> Swift.Bool) async throws -> Swift.Bool
    func asyncMap<A1>(_: (_: Self.Element) async throws -> A1) async throws -> [A1]
    func asyncMap<A1>(_: (_: Self.Element) async -> A1) async -> [A1]
    func asyncMax(by: (Self.Element, Self.Element) async throws -> Swift.Bool) async throws -> Self.Element?
    func asyncMin(by: (Self.Element, Self.Element) async throws -> Swift.Bool) async throws -> Self.Element?
}