| Return type | Name and parameters |
|---|---|
void
|
downto(Number to, Closure closure)
Iterates from this number down to the given number, inclusive, decrementing by one each time. |
Number
|
power(Integer exponent)
Power of a BigInteger to an integer certain exponent. |
void
|
upto(Number to, Closure closure)
Iterates from this number up to the given number, inclusive, incrementing by one each time. |
Iterates from this number down to the given number, inclusive, decrementing by one each time.
to - the end number.closure - the code to execute for each number.Power of a BigInteger to an integer certain exponent. If the exponent is positive, call the BigInteger.pow(int) method to maintain precision. Called by the '**' operator.
exponent - an Integer exponent.