SHARE
TWEET

Untitled

a guest Oct 18th, 2019 75 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.     let timber_resources: HashMap<&str, i32> =
  6.     [("Norway", 100),
  7.      ("Denmark", 50),
  8.      ("Iceland", 10)]
  9.      .iter().cloned().collect();
  10.     // use the values stored in map
  11. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top