i'm learning the functional programming with c#, i'm trying to use :validation<Exceptional<double>>
any one know about that type which it is alternative to either type.
my question how to use that type, that is my trial , the invalid part is confusing with me.
Validation<Exceptional<double>> calc3(double x, double y)=>y==0?Invalid(new Error("please use num less that 10")):Valid(Exceptional(x/y));
my question how to use that type, that is my trial , the invalid part is confusing with me.
Validation<Exceptional<double>> calc3(double x, double y)=>y==0?Invalid(new Error("please use num less that 10")):Valid(Exceptional(x/y));
