6 lines
226 B
Plaintext
Vendored
6 lines
226 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
// INTENTION_TEXT: "Replace with 'mapIndexedTo(){}'"
|
|
// IS_APPLICABLE_2: false
|
|
fun foo(list: List<String>, target: MutableList<Int>) {
|
|
<caret>list.mapIndexedTo(target) { index, s -> s.hashCode() * index }
|
|
} |