Пример #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)));