Supported forEachIndexed

This commit is contained in:
Valentin Kipyatkov
2016-05-11 22:52:46 +03:00
parent f28dca1fd5
commit 4094d77782
7 changed files with 54 additions and 6 deletions
@@ -0,0 +1,7 @@
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'forEachIndexed{}'"
fun foo(list: List<String>) {
<caret>for ((index, s) in list.withIndex()) {
println(s.hashCode() * index)
}
}