equalsEach method
Checks if this list equals another element by element
Implementation
bool equalsEach(List<T> other) {
if (length != other.length) return false;
for (int i = 0; i < length; i++) {
if (this[i] != other[i]) return false;
}
return true;
}