예제 #1
0
 public static Validation <string, R> Run <V, R>(this Coyoneda <Validation <string, V>, V, R> @this) => @this.Value.Map(v => @this.Transform(v));
예제 #2
0
 public static Result <R> Run <V, R>(this Coyoneda <Result <V>, V, R> @this) => @this.Value.Map(v => @this.Transform(v));
예제 #3
0
 public static IEnumerable <R> Run <V, R>(this Coyoneda <IEnumerable <V>, V, R> @this) => @this.Value.Map(v => @this.Transform(v));
예제 #4
0
 public static Either <string, R> Run <V, R>(this Coyoneda <Either <string, V>, V, R> @this) => @this.Value.Map(v => @this.Transform(v));
예제 #5
0
 public static Maybe <R> Run <V, R>(this Coyoneda <Maybe <V>, V, R> @this) => @this.Value.Map(v => @this.Transform(v));
예제 #6
0
 public static Identity <R> Run <V, R>(this Coyoneda <Identity <V>, V, R> @this) => @this.Value.Map(v => @this.Transform(v));
예제 #7
0
 public static R Run <V, R>(this Coyoneda <V, V, R> @this) => @this.Transform(@this.Value);
예제 #8
0
 public static Coyoneda <V, A, C> Select <V, A, B, C>(this Coyoneda <V, A, B> @this, Func <B, C> f) => @this.Map(f);
예제 #9
0
 public static Coyoneda <V, A, C> Map <V, A, B, C>(this Coyoneda <V, A, B> @this, Func <B, C> g) => new Coyoneda <V, A, C>(@this.Value, a => g(@this.Transform(a)));