diff options
| author | Robert Griesemer <gri@golang.org> | 2009-01-28 13:32:31 -0800 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2009-01-28 13:32:31 -0800 |
| commit | cb659ece0e9a74dd330d774552a1f26c4a4d4ee3 (patch) | |
| tree | ae4629b3aef8f9ac36dd2071fe85c94f79cf5870 /src/lib/container/array/intarray.go | |
| parent | 712522a6d83c018cbf6eb4f8e30812e3fdd3b1e1 (diff) | |
| download | go-cb659ece0e9a74dd330d774552a1f26c4a4d4ee3.tar.xz | |
additions to array container:
- added Slice, Cut, InsertArray, AppendArray
- renamed Remove -> Delete (so we have: Insert, Delete, Cut)
- more factoring of code
- extra tests (could use some more)
R=r,rsc
DELTA=179 (127 added, 22 deleted, 30 changed)
OCL=23648
CL=23685
Diffstat (limited to 'src/lib/container/array/intarray.go')
| -rw-r--r-- | src/lib/container/array/intarray.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/container/array/intarray.go b/src/lib/container/array/intarray.go index 7aefa78522..427ed5076c 100644 --- a/src/lib/container/array/intarray.go +++ b/src/lib/container/array/intarray.go @@ -43,8 +43,8 @@ func (p *IntArray) Insert(i int, x int) { } -func (p *IntArray) Remove(i int) int { - return p.Array.Remove(i).(int) +func (p *IntArray) Delete(i int) int { + return p.Array.Delete(i).(int) } |
