This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
mutate
API for storage entries
#667
Labels
I7-refactor
Code needs refactoring.
Z1-easy
Can be fixed primarily by duplicating and adapting code by an intermediate coder
Milestone
Currently storage items have
put
andget
. This can be fairly cumbersome when all you want to do is a minor mutation like push an item to the end of aVec
or increment by 1.We should introduce the
mutate
API which basically works as:It should work correctly with maps (an extra
key
parameter and s/put,kill/insert,remove/) and with default/required variations (s/Option/Value/).The text was updated successfully, but these errors were encountered: