(idx int, val Value)
| 67 | } |
| 68 | |
| 69 | func (t *testDynArray) Set(idx int, val Value) bool { |
| 70 | if idx < 0 { |
| 71 | idx += len(t.a) |
| 72 | } |
| 73 | if idx < 0 { |
| 74 | return false |
| 75 | } |
| 76 | if idx >= len(t.a) { |
| 77 | t.expand(idx + 1) |
| 78 | } |
| 79 | t.a[idx] = val |
| 80 | return true |
| 81 | } |
| 82 | |
| 83 | func (t *testDynArray) SetLen(i int) bool { |
| 84 | if i > len(t.a) { |