完善函数式异常的Applivative
This commit is contained in:
parent
eec4cbc3b6
commit
75a2a3befa
|
@ -31,6 +31,27 @@ public static class ExceptionalException
|
||||||
|
|
||||||
public static Exceptional<Func<T2, R>> Apply<T1, T2, R>(this Exceptional<Func<T1, T2, R>> @this, Exceptional<T1> value)
|
public static Exceptional<Func<T2, R>> Apply<T1, T2, R>(this Exceptional<Func<T1, T2, R>> @this, Exceptional<T1> value)
|
||||||
=> @this.Map(CurryingExtension.Curry).Apply(value);
|
=> @this.Map(CurryingExtension.Curry).Apply(value);
|
||||||
|
|
||||||
|
public static Exceptional<Func<T2, T3, R>> Apply<T1, T2, T3, R>(this Exceptional<Func<T1, T2, T3, R>> @this, Exceptional<T1> value)
|
||||||
|
=> @this.Map(CurryingExtension.CurryFirst).Apply(value);
|
||||||
|
|
||||||
|
public static Exceptional<Func<T2, T3, T4, R>> Apply<T1, T2, T3, T4, R>(this Exceptional<Func<T1, T2, T3, T4, R>> @this, Exceptional<T1> value)
|
||||||
|
=> @this.Map(CurryingExtension.CurryFirst).Apply(value);
|
||||||
|
|
||||||
|
public static Exceptional<Func<T2, T3, T4, T5, R>> Apply<T1, T2, T3, T4, T5, R>(this Exceptional<Func<T1, T2, T3, T4, T5, R>> @this, Exceptional<T1> value)
|
||||||
|
=> @this.Map(CurryingExtension.CurryFirst).Apply(value);
|
||||||
|
|
||||||
|
public static Exceptional<Func<T2, T3, T4, T5, T6, R>> Apply<T1, T2, T3, T4, T5, T6, R>(this Exceptional<Func<T1, T2, T3, T4, T5, T6, R>> @this, Exceptional<T1> value)
|
||||||
|
=> @this.Map(CurryingExtension.CurryFirst).Apply(value);
|
||||||
|
|
||||||
|
public static Exceptional<Func<T2, T3, T4, T5, T6, T7, R>> Apply<T1, T2, T3, T4, T5, T6, T7, R>(this Exceptional<Func<T1, T2, T3, T4, T5, T6, T7, R>> @this, Exceptional<T1> value)
|
||||||
|
=> @this.Map(CurryingExtension.CurryFirst).Apply(value);
|
||||||
|
|
||||||
|
public static Exceptional<Func<T2, T3, T4, T5, T6, T7, T8, R>> Apply<T1, T2, T3, T4, T5, T6, T7, T8, R>(this Exceptional<Func<T1, T2, T3, T4, T5, T6, T7, T8, R>> @this, Exceptional<T1> value)
|
||||||
|
=> @this.Map(CurryingExtension.CurryFirst).Apply(value);
|
||||||
|
|
||||||
|
public static Exceptional<Func<T2, T3, T4, T5, T6, T7, T8, T9, R>> Apply<T1, T2, T3, T4, T5, T6, T7, T8, T9, R>(this Exceptional<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, R>> @this, Exceptional<T1> value)
|
||||||
|
=> @this.Map(CurryingExtension.CurryFirst).Apply(value);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue