zero function

void zero(
  1. List<int> array
)

Sets all elements in a list to zero.

Implementation

void zero(List<int> array) {
  for (int i = 0; i < array.length; i++) {
    array[i] = 0;
  }
}