Iterator methods can be broken into two distinct groups:
Adapters
Adapters take an iterator and return another iterator
// Iterator Adapter
// | |
let my_map = (1..6).map(|x| x * x);
println!("{:?}", my_map);
Output
Map { iter: 1..6 }
Note that the v...