Look into use of MonoidMap
#2300
Labels
Z-Feature
A new feature to be added to the game.
Z-Refactoring
This issue is about restructuring the code without changing the behaviour to improve code quality.
monoidmap is a really nice package which defines total
k -> v
mappings wherev
must be aMonoid
. Anyk -> v
mapping wherev
ismempty
is not stored. I only just discovered this package (thanks to this toot) but it occurs to me that we might be able to use it to simplify some things; for example I'm pretty sureInventory
fits into this model very nicely.The text was updated successfully, but these errors were encountered: