SwiftextensionTeaFoundation
extension Swift.Sequence
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
extends{}
protocolSwift.Sequence
Members 12
- func
Sequence< where A.Element: Sendable>.concurrentMap<A where A1: Sendable>(@Sendable (A.Element) async -> A1) async -> [A1] - func
Sequence.groupedBy<A where A1: Hashable>((A.Element) -> A1) -> [A1 : [A.Element]] - func
Sequence< where A.Element: TeaFoundation.Identifiable>.mapToDict(allowMerging: Bool) -> [String : A.Element] - func
Sequence< where A.Element: TeaFoundation.Identifiable>.mapToDict() -> [String : A.Element] - func
Sequence< where A.Element: Sendable>.throwingConcurrentMap<A where A1: Sendable>(@Sendable (A.Element) async throws -> A1) async throws -> [A1] - func
Sequence< where A.Element: Sendable>.throwingUnorderedConcurrentMap<A where A1: Sendable>(@Sendable (A.Element) async throws -> A1) async throws -> [A1] - func
Sequence< where A.Element: TeaFoundation.Identifiable>.unique() -> [A.Element] - func
Sequence.unique<A where A1: Hashable>(by: KeyPath<A.Element, A1>, favoring: KeyPath<A.Element, Bool>) -> [A.Element] - func
Sequence.unique<A where A1: Hashable>(by: (A.Element) throws -> A1) throws -> [A.Element] - func
Sequence.uniqueByPtr<A where A1: AnyObject>((A.Element) throws -> A1) throws -> [A.Element] - func
Sequence.uniqueWithOptionals<A where A1: Hashable>(by: (A.Element) throws -> A1?) throws -> [A.Element] - func
Sequence< where A.Element: Sendable>.unorderedConcurrentMap<A where A1: Sendable>(@Sendable (A.Element) async -> A1) async -> [A1]
Header
extension Swift.Sequence { func unique() -> [Self.Element] where Self.Element: TeaFoundation.Identifiable func mapToDict(allowMerging: Swift.Bool) -> [Swift.String : Self.Element] where Self.Element: TeaFoundation.Identifiable func mapToDict() -> [Swift.String : Self.Element] where Self.Element: TeaFoundation.Identifiable func uniqueByPtr<A1>(_: (_: Self.Element) throws -> A1) throws -> [Self.Element] where A1: AnyObject func uniqueWithOptionals<A1>(by: (_: Self.Element) throws -> A1?) throws -> [Self.Element] where A1: Swift.Hashable func unique<A1>(by: Swift.KeyPath<Self.Element, A1>, favoring: Swift.KeyPath<Self.Element, Swift.Bool>) -> [Self.Element] where A1: Swift.Hashable func unique<A1>(by: (_: Self.Element) throws -> A1) throws -> [Self.Element] where A1: Swift.Hashable func groupedBy<A1>(_: (_: Self.Element) -> A1) -> [A1 : [Self.Element]] where A1: Swift.Hashable func concurrentMap<A1>(_: @escaping @Sendable (_: Self.Element) async -> A1) async -> [A1] where Self.Element: Swift.Sendable func throwingConcurrentMap<A1>(_: @escaping @Sendable (_: Self.Element) async throws -> A1) async throws -> [A1] where Self.Element: Swift.Sendable func unorderedConcurrentMap<A1>(_: @escaping @Sendable (_: Self.Element) async -> A1) async -> [A1] where Self.Element: Swift.Sendable func throwingUnorderedConcurrentMap<A1>(_: @escaping @Sendable (_: Self.Element) async throws -> A1) async throws -> [A1] where Self.Element: Swift.Sendable }