mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Do not call getProgressionFinalElement, use new progression properties 'first' and 'last' instead.
11 lines
140 B
Kotlin
Vendored
11 lines
140 B
Kotlin
Vendored
fun f() {
|
|
for (i in 0..5 step 2) {
|
|
}
|
|
for (i in 5 downTo 1) {
|
|
}
|
|
}
|
|
|
|
// 0 iterator
|
|
// 2 getFirst
|
|
// 2 getLast
|
|
// 2 getIncrement |