So given that I can’t let things go… went back to the exercise and finished it by overly simplifying it to meet the stated goals:
Still, it doesn’t feel right. Why should I have to clone the departments hashmap in the "link" arm of the match statement, for example (apart from keeping the compiler happy).
You can also the see rabbit whole I went into in the linked commit from the readme.
As always, thoughts/comments/improvements welcome :)