Add resources-en for idea

#KT-38297 Fixed
This commit is contained in:
Dmitry Gridin
2020-05-19 10:55:55 +07:00
parent 12217ef2ab
commit 0df5d5158d
872 changed files with 4 additions and 3 deletions
@@ -0,0 +1,5 @@
fun foo(list: List<String>) {
for (<spot>(index, s) in list.withIndex()</spot>) {
print(s.substring(<spot>index</spot>))
}
}
@@ -0,0 +1,6 @@
fun foo(list: List<String>) {
<spot>var index = 0</spot>
for (s in list) {
print(s.substring(<spot>index++</spot>))
}
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention replaces a manually incremented index variable in a <b>for</b> loop with the use of a <b>withIndex()</b> function.
</body>
</html>