January 2020
Intermediate to advanced
470 pages
11h 13m
English
Knowing that a value was missing may be enough in some cases, but in others, you'll want to be able to provide an explanation. We can get such an explanation if we use a different functor, which will take one of two possible values: one associated with a problem, error, or failure, and another associated with normal execution, or success:
We can construct this monad in a similar way to what we did for Maybe (actually, the added operations ...