monomial static method

Int32List monomial(
  1. int degree,
  2. int coefficient
)

Implementation

static Int32List monomial(int degree, int coefficient) {
  if (coefficient == 0) return Int32List.fromList(<int>[0]);
  final Int32List out = Int32List(degree + 1);
  out[0] = coefficient;
  return out;
}