eq static method

bool eq(
  1. List<int> a,
  2. List<int> b
)

Implementation

static bool eq(List<int> a, List<int> b) {
  if (a.length != b.length) {
    return false;
  }
  for (var i = a.length - 1; i >= 0; i--) {
    if (a[i] != b[i]) {
      return false;
    }
  }
  return true;
}