mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
16 lines
228 B
Kotlin
Vendored
16 lines
228 B
Kotlin
Vendored
fun test(a: Int, b: Int): Int {
|
|
var sum = 0
|
|
for (i in a until b) {
|
|
sum = sum * 10 + i
|
|
}
|
|
return sum
|
|
}
|
|
|
|
// 0 iterator
|
|
// 0 getStart
|
|
// 0 getEnd
|
|
// 0 getFirst
|
|
// 0 getLast
|
|
// 0 getStep
|
|
// 1 IF_ICMPGE
|
|
// 1 IF |