pow method

T pow(
  1. int n
)

Implementation

T pow(int n) {
  var a = this as T;
  if (n == 0) {
    return a.mulIdentity();
  }
  var x = pow(n >> 1);
  x *= x;
  if (n & 1 == 1) x *= a;
  return x;
}