Find why this report cannot promise reproducible text.
Rust
use std::collections::HashMap;
fn render_counts(events: &[&str]) -> String {
let mut counts = HashMap::new();
for event in events {
*counts.entry(*event).or_insert(0) += 1;
}
format!("{counts:?}")
}