Missing Match for UnitResult
thomaseyde opened this issue · comments
I miss the following Match
method for UnitResult
:
static class MatchUnitResult
{
public static R Match<E, R>(this UnitResult<E> result, Func<R> success, Func<E, R> failure) =>
result.IsSuccess
? success()
: failure(result.Error);
}
Thanks for reporting this. Feel free to submit a PR as well.