Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. let comp_name_thread = thread::spawn(|| {
  2. let mut component_map: BTreeMap<String, i32> = BTreeMap::new();
  3. for comp_name in component_name_occurrences {
  4. *component_map.entry(comp_name).or_insert(0) += 1;
  5. }
  6. component_map
  7. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement