Skip to content

Commit 3927e78

Browse files
authored
Add to-do for Stride* implementation of _customContainsEquatableElement (#39908)
1 parent 1d38759 commit 3927e78

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/public/core/Stride.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,8 @@ extension StrideTo: Sequence {
384384
} else {
385385
if element < _start || _end <= element { return false }
386386
}
387+
// TODO: Additional implementation work will avoid always falling back to the
388+
// predicate version of `contains` when the sequence *does* contain `element`.
387389
return nil
388390
}
389391
}
@@ -599,6 +601,8 @@ extension StrideThrough: Sequence {
599601
} else {
600602
if element < _start || _end < element { return false }
601603
}
604+
// TODO: Additional implementation work will avoid always falling back to the
605+
// predicate version of `contains` when the sequence *does* contain `element`.
602606
return nil
603607
}
604608
}

0 commit comments

Comments
 (0)