downTo
Returns a progression from this value down to and including the specified to value with the step -1.
infix fun Int.downTo(to: Byte): IntProgression(source)
val end: Byte = 3
for (i in 7 downTo end) {
println(i)
}
Returns a progression from this value down to and including the specified to value with the step -1.
infix fun Int.downTo(to: Byte): IntProgression(source)
val end: Byte = 3
for (i in 7 downTo end) {
println(i)
}