EDIT: this is basically working, but the tests aren't passing ATM.
Ideally, I want as little of the processor functions as possible to rely on mutable state. So that means using interators, map, group_by and such to transform data structures: hash -> vector (sort) -> hash? (grouping).
I couldn't get my preferred grouping function using itertools::group_by to compile, however, so just used what I could get working for now.
Can optimize later.
Just trying to get the final piece to work, which is ProcHints. I may store those in another HashMap.
EDIT: this is basically working, but the tests aren't passing ATM.
Ideally, I want as little of the processor functions as possible to rely on mutable state. So that means using interators, map, group_by and such to transform data structures: hash -> vector (sort) -> hash? (grouping).
I couldn't get my preferred grouping function using
itertools::group_by
to compile, however, so just used what I could get working for now.Can optimize later.
Just trying to get the final piece to work, which is ProcHints. I may store those in another HashMap.