Files
kotlin-fork/idea/resources/intentionDescriptions/UseWithIndexIntention/before.kt.template
T
2016-08-16 17:38:13 +03:00

6 lines
139 B
Plaintext

fun foo(list: List<String>) {
<spot>var index = 0</spot>
for (s in list) {
print(s.substring(<spot>index++</spot>))
}
}