示例#1
0
文件: Integer.cs 项目: yyyyj/ironruby
        public static RubyArray /*!*/ GcdLcm(int self, int other)
        {
            int gcd = SignedGcd(self, other);

            return(new RubyArray {
                ClrInteger.Abs(gcd), Lcm(self, other, gcd)
            });
        }
示例#2
0
 public static object Next(int self)
 {
     return(ClrInteger.Add(self, 1));
 }
示例#3
0
文件: Integer.cs 项目: yyyyj/ironruby
 public static object /*!*/ Gcd(int self, int other)
 {
     return(ClrInteger.Abs(SignedGcd(self, other)));
 }
示例#4
0
文件: Integer.cs 项目: yyyyj/ironruby
 public static object Pred(int self)
 {
     return(ClrInteger.Subtract(self, 1));
 }