bdarcus / csln

Reimagining CSL
Mozilla Public License 2.0
13 stars 0 forks source link

Add grouping, etc #17

Closed bdarcus closed 1 year ago

bdarcus commented 1 year ago

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.