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.
+ 1
advanced(by: 1)
1 parent 2586187 commit 85f126fCopy full SHA for 85f126f
Sources/Algorithms/Combinations.swift
@@ -122,7 +122,7 @@ extension Combinations: Sequence {
122
internal mutating func advance() {
123
/// Advances `k` by increasing its `lowerBound` or finishes the iteration.
124
func advanceK() {
125
- let advancedLowerBound = k.lowerBound.advanced(by: 1)
+ let advancedLowerBound = k.lowerBound + 1
126
if advancedLowerBound < k.upperBound {
127
k = advancedLowerBound..<k.upperBound
128
self.indexes = Array(base.indices.prefix(k.lowerBound))
0 commit comments