blob: e45443c89b5005b9bbee9f03da873f4842718468 [file] [log] [blame]
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'mapIndexedTo(){}'"
// IS_APPLICABLE_2: false
fun foo(list: List<String>, target: MutableList<Int>) {
<caret>for ((index, s) in list.withIndex()) {
target.add(s.hashCode() * index)
}
}