pub fn command_counts(
entries: impl Iterator<Item = Entry>,
) -> HashMap<String, usize>Expand description
Tally how often each pacman command was run across a stream of entries.
Drop errors first, e.g. command_counts(reader.entries().filter_map(Result::ok)).