OperatorExtension extension
Num conversion operator extensions
Properties
-
factorial
→ int
-
Calculates the factorial of the integer.
no setter
Methods
-
power(num exponent)
→ num
-
Raises the current number to the power of
exponent
.
-
rangeTo(num other)
→ List<num>
-
Generates a list of numbers from the current number to
other
, inclusive.
-
sumTo(num other)
→ num
-
Calculates the sum of all numbers in the range from the current number to
other
, inclusive.