What syntax are people using with `for` loops? I w...
# android
s
What syntax are people using with
for
loops? I was using
for (i in 0..list.size - 1)
, but it’s annoying having to subtract the 1 from the list size, and It seems that the
x..y
syntax is actually creating an IntRange object. Anyone know of a more convenient syntax that perhaps doesn’t create an object?