removeFrom method

void removeFrom(
  1. int index,
  2. int count
)

Removes the number of elements defined by count, starting from index.

Implementation

void removeFrom(int index, int count) {
  assert(index >= 0 && index < length);
  assert(count >= 0 && count <= length - index);
  removeRange(index, index + count);
}