mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
14 lines
180 B
Kotlin
Vendored
14 lines
180 B
Kotlin
Vendored
|
|
fun foo() : Long {
|
|
val x = LongArray(5)
|
|
|
|
for (i in 0..4) {
|
|
x[i] = (i + 1).toLong()
|
|
}
|
|
|
|
return x.fold(0L) { x, y -> x + y }
|
|
}
|
|
|
|
// 0 valueOf
|
|
// 0 Value\s\(\)
|