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

5 lines
140 B
Plaintext

fun foo(list: List<String>) {
for (<spot>(index, s) in list.withIndex()</spot>) {
print(s.substring(<spot>index</spot>))
}
}