how the for loop in kotlin works? why don't we nee...
# getting-started
m
how the for loop in kotlin works? why don't we need to initialize the variable x that iterates in for loop?
n
can you give a concrete example that puzzles you? Typical usage would be
for (x in 1..10) println(x)
m
Yeah. I sorted it out.Just one doubt remaining,if i wanna iterate the for loop not from the beginning,but from say position 5.So how can i do that?