I have the following code:
let something = 5
for (var i = 1; i< something; i++)
{
}
I get the following error:
braced block in unused closure!!
There is something wrong with the "something" variable I am using above. Any ideas?
UPDATE:
And this works:
for var i = 1; i<=noOfTimes;i++
{
println("Hello World")
}