Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let comp_name_thread = thread::spawn(|| {
- let mut component_map: BTreeMap<String, i32> = BTreeMap::new();
- for comp_name in component_name_occurrences {
- *component_map.entry(comp_name).or_insert(0) += 1;
- }
- component_map
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement