use std::collections::HashMap;
fn main() {
let mut hmp = HashMap::new();
hmp.insert("Red", 30);
hmp.insert("Green", 57);
hmp.insert("Blue", 86);
hmp.insert("Yellow", 102);
let values: Vec<i32> = hmp.values().map(|v| v * v).collect();
println!("{:?}", values);
}
/*
run:
[3249, 900, 7396, 10404]
*/