Commit 176e256b authored by Robert Griesemer's avatar Robert Griesemer

Added missing Set method for Vector

BUG=1474670
TBR=r
DELTA=6  (6 added, 0 deleted, 0 changed)
OCL=18839
CL=18843
parent a3b4a3c2
......@@ -42,6 +42,12 @@ func (v *Vector) At(i int) Element {
}
func (v *Vector) Set(i int, e Element) {
// range check unnecessary - done by runtime
v.elem[i] = e;
}
func (v *Vector) Remove(i int) Element {
ret := v.elem[i];
n := v.Len();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment