mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-05-05 13:08:05 +08:00
12 lines
307 B
Rust
Executable File
12 lines
307 B
Rust
Executable File
fn main() {
|
|
// 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<_, _> =
|
|
teams.into_iter().zip(initial_scores.into_iter()).collect();
|
|
// ANCHOR_END: here
|
|
}
|