step
Returns a progression that goes over the same range with the given step.
infix fun IntProgression.step(step: Int): IntProgression(source)
fun main() {
val progression = (1..10) step 2
for (i in progression) {
println(i)
}
}
Returns a progression that goes over the same range with the given step.
infix fun IntProgression.step(step: Int): IntProgression(source)
fun main() {
val progression = (1..10) step 2
for (i in progression) {
println(i)
}
}