We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4df3541 + 0648aad commit 26cdef1Copy full SHA for 26cdef1
stdlib/public/core/Collection.swift
@@ -404,7 +404,8 @@ public protocol Collection : Sequence
404
/// protocol, but it is restated here with stricter constraints. In a
405
/// collection, the subsequence should also conform to `Collection`.
406
associatedtype SubSequence : Collection = Slice<Self>
407
- where SubSequence.Index == Index
+ where SubSequence.Index == Index,
408
+ SubSequence.IndexDistance == IndexDistance
409
410
/// Accesses the element at the specified position.
411
///
0 commit comments