operator []= method
Sets the value in the stack at index
to value
.
Implementation
operator[]=(int index, dynamic value) {
if (index < 0) index += top + 1; // Resolve index before push
push(value);
replace(index);
}
Sets the value in the stack at index
to value
.
operator[]=(int index, dynamic value) {
if (index < 0) index += top + 1; // Resolve index before push
push(value);
replace(index);
}