KT-2579 Rename Range.minus() to reversed and make it extension

#KT-2579 fixed
This commit is contained in:
Evgeny Gerashchenko
2012-08-09 16:14:00 +04:00
parent 577d83605f
commit 1bc99ef19a
12 changed files with 43 additions and 50 deletions
@@ -4,7 +4,7 @@ fun box() : String {
cnt++
}
for (n in -(1..5))
for (n in (1..5).reversed)
cnt++
return if(cnt == 9) "OK" else cnt.toString()