Files
kotlin-fork/idea/testData/intentions/loopToCallChain/mapTo_indexUsed.kt.after
T
2016-08-16 17:38:03 +03:00

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 }
}