Files
freezelib/sample/sample.rs
2025-07-18 19:02:23 +08:00

12 lines
264 B
Rust

use std::collections::HashMap;
fn main() {
let mut scores = HashMap::new();
scores.insert(String::from("Blue"), 10);
scores.insert(String::from("Yellow"), 50);
for (key, value) in &scores {
println!("{}: {}", key, value);
}
}