We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
idx is a variable created by the compiler, which is a mutable reference to the current iteration index within repeat and each-in loops
idx
repeat
each-in
repeat 10 { print(idx) } each String in names { printf("names[%zu] = %S\n", idx, it) }
idx is always of type usize
usize
Table of Contents