```public infix fun IntProgression.step(step: Int)...
# stdlib
m
Copy code
public infix fun IntProgression.step(step: Int): IntProgression {
    checkStepIsPositive(step > 0, step)
    return IntProgression.fromClosedRange(first, last, if (this.step > 0) step else -step)
}
else
branch is dead here
e
Nope --
this.step
and
step
are different variables.
🙀 1
👍 1
m
Got it, thanks!