Merge branch 'for-loop-indices' of https://github.com/ElliotM/kotlin into ElliotM-for-loop-indices

This commit is contained in:
Dmitry Jemerov
2015-07-02 13:14:19 +02:00
36 changed files with 358 additions and 0 deletions
@@ -0,0 +1,3 @@
for ((i, x) in foo.withIndices()) {
}
@@ -0,0 +1,3 @@
for (x in foo) {
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention adds an index variable to a for loop iterating over a collection.
</body>
</html>
@@ -0,0 +1,3 @@
for (x in foo) {
}
@@ -0,0 +1,3 @@
for ((i, x) in foo.withIndices()) {
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention removes the index variable from a for loop iterating over a collection.
</body>
</html>