We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad5ffb9 commit 72104c1Copy full SHA for 72104c1
SwiftCompilerSources/Sources/SIL/Value.swift
@@ -154,6 +154,12 @@ public func !=(_ lhs: Value, _ rhs: Value) -> Bool {
154
return !(lhs === rhs)
155
}
156
157
+extension CollectionLikeSequence where Element == Value {
158
+ public func contains(_ element: Element) -> Bool {
159
+ return self.contains { $0 == element }
160
+ }
161
+}
162
+
163
/// A projected value, which is defined by the original value and a projection path.
164
///
165
/// For example, if the `value` is of type `struct S { var x: Int }` and `path` is `s0`,
0 commit comments