File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,16 @@ public struct LazyFilterSequence<Base : Sequence>
84
84
_base: base. makeIterator ( ) , _include)
85
85
}
86
86
87
+ @_inlineable
88
+ public func _customContainsEquatableElement(
89
+ _ element: Element
90
+ ) -> Bool ? {
91
+ if !_include( element) {
92
+ return false
93
+ }
94
+ return nil
95
+ }
96
+
87
97
/// Creates an instance consisting of the elements `x` of `base` for
88
98
/// which `isIncluded(x) == true`.
89
99
@_inlineable // FIXME(sil-serialize-all)
@@ -152,6 +162,16 @@ public struct ${Self}<
152
162
self . _predicate = isIncluded
153
163
}
154
164
165
+ @_inlineable
166
+ public func _customContainsEquatableElement(
167
+ _ element: Element
168
+ ) -> Bool ? {
169
+ if !_predicate( element) {
170
+ return false
171
+ }
172
+ return nil
173
+ }
174
+
155
175
/// The position of the first element in a non-empty collection.
156
176
///
157
177
/// In an empty collection, `startIndex == endIndex`.
You can’t perform that action at this time.
0 commit comments