SwiftextensionPriMLCore
extension Swift.Collection
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
extends{}
protocolSwift.Collection
Members 11
- func
Collection.asyncFirst(where: (A.Element) async throws -> Bool) async throws -> A.Element? - func
Collection.asyncMap<A>((A.Element) async throws -> A1) async throws -> [A1] - func
Collection.asyncMap<A>((A.Element) async -> A1) async -> [A1] - func
Collection.asyncMax(by: (A.Element, A.Element) async throws -> Bool) async throws -> A.Element? - func
Collection.asyncMin(by: (A.Element, A.Element) async throws -> Bool) async throws -> A.Element? - func
Collection.asyncReduce<A>(into: A1, _: (inout A1, A.Element) async throws -> ()) async throws -> A1 - func
Collection.asyncReduce<A>(A1, (A1, A.Element) async throws -> A1) async throws -> A1 - func
Collection.asyncSorted(by: (A.Element, A.Element) async throws -> Bool) async throws -> [A.Element] - func
Collection.concurrentAllSatisfy(concurrency: Int, _: (A.Element) async throws -> Bool) async throws -> Bool - func
Collection.concurrentFilter(concurrency: Int, _: (A.Element) async throws -> Bool) async throws -> [A.Element] - func
Collection.concurrentMap<A>(concurrency: Int, _: (A.Element) async throws -> A1) async throws -> [A1]
Header
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? }