예제 #1
0
 public static Result <TSuccess, TFailure> ToResult <TSuccess, TFailure>(
     this TaggedUnion <TSuccess, TFailure> union)
     where TFailure : struct
 =>
 union.Fold(
     Result <TSuccess, TFailure> .Success,
     Result <TSuccess, TFailure> .Failure);