Files
kotlin-fork/idea/testData/intentions/loopToCallChain/map/mapIndexedTo.kt.after
T
2016-08-23 22:47:42 +03:00

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