// WITH_RUNTIME // INTENTION_TEXT: "Replace with 'mapIndexed{}.forEach{}'" // INTENTION_TEXT_2: "Replace with 'asSequence().mapIndexed{}.forEach{}'" fun foo(list: List) { list .mapIndexed { index, s -> s.length * index } .forEach { println(it) } }