Beispiel #1
0
        public static RubyArray /*!*/ GcdLcm(int self, int other)
        {
            int gcd = SignedGcd(self, other);

            return(new RubyArray {
                ClrInteger.Abs(gcd), Lcm(self, other, gcd)
            });
        }
Beispiel #2
0
 public static object Next(int self)
 {
     return(ClrInteger.Add(self, 1));
 }
Beispiel #3
0
 public static object /*!*/ Gcd(int self, int other)
 {
     return(ClrInteger.Abs(SignedGcd(self, other)));
 }
Beispiel #4
0
 public static object Pred(int self)
 {
     return(ClrInteger.Subtract(self, 1));
 }