replace method
Implementation
void replace(int index, T newValue) {
if (index < 0 || index > lastIndex) {
return;
}
this[index] = newValue;
}
void replace(int index, T newValue) {
if (index < 0 || index > lastIndex) {
return;
}
this[index] = newValue;
}