I'm not sure that this...
```rust
for (i, p) in permutations.mut_iter().enumerate() { *p = i }
```
actually looks any better than the current `range` solution. But you're right that the prior one should probably be an iterator, so I might do this to be consistent.