Koltin - clean loops/indexing
I have been writing code like:
index = 0
while (index < 10){
// do something
index ++
}
I'd like to make this much cleaner, with something along the lines of
while(var index = 0; index < 10; index ++)
{
// do something
index ++
}
How can I achieve this?