filter(_:)

iOS
17+
macOS
14+
tvOS
17+
watchOS
10+
func filter(_ predicate: Predicate<Self.Element>) throws -> [Self.Element]