operator []= method

void operator []=(
  1. int index,
  2. num value
)

Sets the value at the given index of the vector.

Implementation

void operator []=(int index, num value) {
  _data[index] = value;
}