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.
R.Bound
Int
1 parent 76aadc9 commit ef79f30Copy full SHA for ef79f30
Sources/Algorithms/Combinations.swift
@@ -45,7 +45,7 @@ public struct Combinations<Base: Collection> {
45
internal init<R: RangeExpression>(
46
_ base: Base, k: R
47
) where R.Bound == Int {
48
- let range = k.relative(to: R.Bound.zero..<R.Bound.max)
+ let range = 0 ..< .max
49
self.base = base
50
let upperBound = base.count + 1
51
self.k = range.lowerBound < upperBound
0 commit comments