c++ and rust backends: for enumerate loop `for index,value in enumerate(A):`