File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,11 @@ public struct LazySplitCollection<Base: Collection> {
58
58
}
59
59
} else {
60
60
/// 3. `base` isn't empty, so we must iterate it to determine the start index.
61
- _startIndex = indexForSubsequence ( atOrAfter: base. startIndex)
61
+ _startIndex = indexForSubsequence (
62
+ atOrAfter: base. startIndex,
63
+ sequenceLength: 0 ,
64
+ separatorCount: 0
65
+ )
62
66
}
63
67
}
64
68
}
@@ -97,8 +101,8 @@ extension LazySplitCollection: LazyCollectionProtocol {
97
101
/// Returns the index of the subsequence starting at or after the given base collection index.
98
102
internal func indexForSubsequence(
99
103
atOrAfter lowerBound: Base . Index ,
100
- sequenceLength: Int = 0 ,
101
- separatorCount: Int = 0
104
+ sequenceLength: Int ,
105
+ separatorCount: Int
102
106
) -> Index {
103
107
var newSeparatorCount = separatorCount
104
108
var start = lowerBound
You can’t perform that action at this time.
0 commit comments