for zip(@foos, 0...) -> $foo, $i { # Here, $foo is an element of @foo # and $i is its index. }