1
0
mirror of https://github.com/golang/go synced 2024-11-20 11:04:56 -07:00

Added missing Set method for Vector

BUG=1474670
TBR=r
DELTA=6  (6 added, 0 deleted, 0 changed)
OCL=18839
CL=18843
This commit is contained in:
Robert Griesemer 2008-11-07 18:31:50 -08:00
parent a3b4a3c29d
commit 176e256b26

View File

@ -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();