Thanks that was a very illuminating example. As for iterating over pairs would it be possible to have an iterator that gives both:
1. A mutable reference to the next element 2. An iterator over the rest of the elements the idea would be to be able to write for (ele_i, rest) in list.iterator() { for ele_j in rest { do stuff } } silvio _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev