Return an object containing the result of the computation from which the value or error can be extracted using .isError check. Useful as an alternative to .match
Chain another computation to this IFailable that takes the result value of this IFailable and returns a new IFailable (possibly of a different type). The chained computation must be an IFailable whose error type is a subset of this IFailable's error type. If not, you can call .mapError on it to convert it's error into a type compatible with this IFailable.
This method allows you to chain arbitrary failable computations dependent on the results of previous ones in the chain that "short circuit" in case of the first error.
Function that takes the success value of this IFailable and returns another IFailable (possibly of another type)
Function that transforms a success value.
Function for transforming the error value
Pattern match over this IFailable by supplying a success and failure functions. Both cases must return a value of type T
Match cases
Generated using TypeDoc
Type that represents a failable computation. Is parametrized over the result type and the error type.