// ANCHOR: here
use std::collections::HashMap;
- let teams = vec![String::from("Blue"), String::from("Yellow")];
- let initial_scores = vec![10, 50];
+ let mut scores = HashMap::new();
- let mut scores: HashMap<_, _> =
- teams.into_iter().zip(initial_scores.into_iter()).collect();
+ scores.insert(String::from("Blue"), 10);
+ scores.insert(String::from("Yellow"), 50);
+
+ let team_name = String::from("Blue");
+ let score = scores.get(&team_name);
// ANCHOR_END: here
}