5 lines
199 B
Plaintext
Vendored
5 lines
199 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
// INTENTION_TEXT: "Replace with '+= mapIndexed{}'"
|
|
fun foo(list: List<String>, target: MutableList<Int>) {
|
|
<caret>target += list.mapIndexed { index, s -> s.hashCode() * index }
|
|
} |