Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unused)]
- use std::collections::HashMap;
- fn main() {
- let mut vec: Vec<HashMap<&str, i32>> = vec![[("mark", 0)].iter().cloned().collect(); 10];
- vec.push([("mark", 3)].iter().cloned().collect()); vec.remove(0);
- println!("{:?}", vec[9]["mark"]);
- }
Add Comment
Please, Sign In to add comment