Use external iterators (required in rust 0.7).