Beispiel #1
0
 public static type Add <type, mark>(this SRing <type, mark> ring, type l, type r) => ((SSemigroup <type, Additive <mark> >)ring).Add(l, r);
Beispiel #2
0
 public static type One <type, mark>(this SRing <type, mark> ring) => ((SNeutral <type, Multiplicative <mark> >)ring).One();
Beispiel #3
0
 public static type Zero <type, mark>(this SRing <type, mark> ring) => ((SNeutral <type, Additive <mark> >)ring).Zero();
Beispiel #4
0
 public static type MinusOne <type, mark>(this SRing <type, mark> that) => that.Neg(that.One());
Beispiel #5
0
 public static type Dec <type, mark>(this SRing <type, mark> ring, type t) => ring.Sub(t, ring.One());
Beispiel #6
0
 public static type Inc <type, mark>(this SRing <type, mark> ring, type t) => ring.Add(t, ring.One());