shiftLeft method

LexoInteger shiftLeft([
  1. int times = 1
])

Implementation

LexoInteger shiftLeft([int times = 1]) {
  if (identical(times, 0)) {
    return this;
  }
  if (times < 0) {
    return shiftRight(times.abs());
  }
  final nmag = List<int>.filled(mag.length + times, 0);
  lexoHelper.arrayCopy(mag, 0, nmag, times, mag.length);
  return LexoInteger.make(sys, sign, nmag);
}