SHARE
TWEET

Untitled

a guest Sep 17th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. });
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