mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
18 lines
222 B
Kotlin
Vendored
18 lines
222 B
Kotlin
Vendored
const val M = Char.MAX_VALUE
|
|
|
|
fun f(a: Char): Int {
|
|
var n = 0
|
|
for (i in a..M) {
|
|
n++
|
|
}
|
|
return n
|
|
}
|
|
|
|
// 0 iterator
|
|
// 0 getStart
|
|
// 0 getEnd
|
|
// 0 getFirst
|
|
// 0 getLast
|
|
// 0 getStep
|
|
// 2 IF_ICMP
|
|
// 2 IF |