Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement