Exemplo n.º 1
0
 public static IFuncResult <NegativeInt32, OverflowException> Substract(NegativeInt32 x1, PositiveOrZeroInt32 x2)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 2
0
 static public IFuncResult <PositiveOrZeroInt32, OverflowException> Add(PositiveOrZeroInt32 x1, PositiveOrZeroInt32 x2)
 => SystemInt32Algebra.Add(x1.Int32Value, x2.Int32Value)
 .Tranform(x => new PositiveOrZeroInt32(x));
Exemplo n.º 3
0
 public static NegativeOrZeroInt32 OpositeOf(PositiveOrZeroInt32 x) => new NegativeOrZeroInt32(-x.Int32Value);