Implemented reversed() in proper way.
- converted it into function - return sequence values - implemented for sequences as well
This commit is contained in:
@@ -4,7 +4,7 @@ fun box() : String {
|
||||
cnt++
|
||||
}
|
||||
|
||||
for (n in (1..5).reversed)
|
||||
for (n in (1..5).reversed())
|
||||
cnt++
|
||||
|
||||
return if(cnt == 9) "OK" else cnt.toString()
|
||||
|
||||
Reference in New Issue
Block a user