9 lines
260 B
Kotlin
Vendored
9 lines
260 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// IS_APPLICABLE: false
|
|
// IS_APPLICABLE_2: false
|
|
fun foo(list: List<String>, target: MutableList<String>) {
|
|
<caret>for (s in list) {
|
|
val length = if (s.isNotEmpty()) s.length else break
|
|
target.add(length.toString())
|
|
}
|
|
} |