3 Checks for iterating a map (`HashMap` or `BTreeMap`) and
4 ignoring either the keys or values.
8 Readability. There are `keys` and `values` methods that
9 can be used to express that we only need the keys or the values.
14 let map: HashMap<u32, u32> = HashMap::new();
15 let values = map.iter().map(|(_, value)| value).collect::<Vec<_>>();
20 let map: HashMap<u32, u32> = HashMap::new();
21 let values = map.values().collect::<Vec<_>>();