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

5 lines
200 B
Plaintext
Vendored

// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'mapIndexedTo(){}'"
fun foo(list: List<String>, target: MutableList<Int>) {
<caret>list.mapIndexedTo(target) { index, s -> s.hashCode() * index }
}