SwiftextensionTeaFoundation

extension Swift.Sequence

Structure

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

extends{}

Members 12

  1. funcSequence< where A.Element: Sendable>.concurrentMap<A where A1: Sendable>(@Sendable (A.Element) async -> A1) async -> [A1]
  2. funcSequence.groupedBy<A where A1: Hashable>((A.Element) -> A1) -> [A1 : [A.Element]]
  3. funcSequence< where A.Element: TeaFoundation.Identifiable>.mapToDict(allowMerging: Bool) -> [String : A.Element]
  4. funcSequence< where A.Element: TeaFoundation.Identifiable>.mapToDict() -> [String : A.Element]
  5. funcSequence< where A.Element: Sendable>.throwingConcurrentMap<A where A1: Sendable>(@Sendable (A.Element) async throws -> A1) async throws -> [A1]
  6. funcSequence< where A.Element: Sendable>.throwingUnorderedConcurrentMap<A where A1: Sendable>(@Sendable (A.Element) async throws -> A1) async throws -> [A1]
  7. funcSequence< where A.Element: TeaFoundation.Identifiable>.unique() -> [A.Element]
  8. funcSequence.unique<A where A1: Hashable>(by: KeyPath<A.Element, A1>, favoring: KeyPath<A.Element, Bool>) -> [A.Element]
  9. funcSequence.unique<A where A1: Hashable>(by: (A.Element) throws -> A1) throws -> [A.Element]
  10. funcSequence.uniqueByPtr<A where A1: AnyObject>((A.Element) throws -> A1) throws -> [A.Element]
  11. funcSequence.uniqueWithOptionals<A where A1: Hashable>(by: (A.Element) throws -> A1?) throws -> [A.Element]
  12. funcSequence< where A.Element: Sendable>.unorderedConcurrentMap<A where A1: Sendable>(@Sendable (A.Element) async -> A1) async -> [A1]
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
}