use std::collections::HashMap;
fn main() {
let mut map: HashMap<char, u64> = HashMap::new();
map.insert('a', 1);
map.insert('c', 2);
map.insert('b', 3);
// How can I get char 'c' and value 2 since its the second value added to the map
}
I tried getting the keys and values from the hashmap and but they are not returned in right order in which they are added.