// WITH_RUNTIME // INTENTION_TEXT: "Replace with 'mapIndexed{}.firstOrNull{}'" // INTENTION_TEXT_2: "Replace with 'asSequence().mapIndexed{}.firstOrNull{}'" fun foo(list: List): Int? { for ((index, s) in list.withIndex()) { val x = s.length * index if (x > 0) return x } return null }