daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #![allow(unused)]
  2. use std::collections::HashMap;
  3.  
  4. fn main() {
  5.  
  6. let mut vec: Vec<HashMap<&str, i32>> = vec![[("mark", 0)].iter().cloned().collect(); 10];
  7.  
  8. vec.push([("mark", 3)].iter().cloned().collect()); vec.remove(0);
  9.  
  10. println!("{:?}", vec[9]["mark"]);
  11.  
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top