Mar-03-2021, 07:05 AM
I've refactored the tests for
Result
to tell a better story. What I think one cares about first is how you produce them in the first place, then how you compose them and only lastly that you can transform the value inside a Success
. Because of my bias of having worked with these and thus knowing what the common operations are, I actually ended up implementing map
first, hence the original order.