Flatten nested range loops

I'm sorry if I'm missing something obvious but what's the right way to flatten nested loops? For example, I want to flatten:

for i in 0..10 {
    for j in 0..10 {
         for k in 0..10 {
             // ...
         }
    }
}

Into something like this:

for (i, j, k) in ??? {
    // ...
}
1 Like
5 Likes

Thanks! That's exactly what I wanted.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.