https://kotlinlang.org logo
#announcements
Title
# announcements
m

myanmarking

05/18/2017, 1:58 PM
i know i can use for(i in 0..list.size-1). but too verbose
r

Ruckus

05/18/2017, 2:19 PM
myanmarking: You could use
Copy code
for (i in 0..list.lastIndex) { ... }
m

myanmarking

05/18/2017, 2:22 PM
thx
yes i found it already
👍 1
2 Views