/// <summary>
 /// Executes a specified action based on the result state.
 /// </summary>
 /// <param name="success">Action to execute on <see cref="ResultState.Success"/> state.</param>
 /// <param name="error">Action to execute on <see cref="ResultState.Error"/> state.</param>
 /// <returns>Unit.</returns>
 public Unit Match(
     SuccessAction <A> success,
     ErrorAction <Error> error)
 => Match(success.ToFunc(), error.ToFunc());