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.
Stride*
_customContainsEquatableElement
1 parent 1d38759 commit 3927e78Copy full SHA for 3927e78
stdlib/public/core/Stride.swift
@@ -384,6 +384,8 @@ extension StrideTo: Sequence {
384
} else {
385
if element < _start || _end <= element { return false }
386
}
387
+ // TODO: Additional implementation work will avoid always falling back to the
388
+ // predicate version of `contains` when the sequence *does* contain `element`.
389
return nil
390
391
@@ -599,6 +601,8 @@ extension StrideThrough: Sequence {
599
601
600
602
if element < _start || _end < element { return false }
603
604
605
606
607
608
0 commit comments