11a3482970
#KT-38632 Fixed
9 lines
316 B
Plaintext
Vendored
9 lines
316 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
// INTENTION_TEXT: "Replace with 'map{}.forEachIndexed{}'"
|
|
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.forEachIndexed{}'"
|
|
fun foo(list: List<String>) {
|
|
list
|
|
.asSequence()
|
|
.map { it.substring(1) }
|
|
.forEachIndexed { index, s1 -> println(s1.hashCode() * index) }
|
|
} |