Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 54 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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