Is it possible to continue n times in a kotlin loop?
for(i in 0..n){
doSomething()
if(condition){
//manipulate n
}
}
Since i
for some reason is a val I cannot seem to reinitialize it in the loop.
repeat(n){
blah()
}
Will execute blah()
n
times.