Set updates the value at index i to v in the slice and List.
(i, v int)
| 316 | |
| 317 | // Set updates the value at index i to v in the slice and List. |
| 318 | func (l *TList) Set(i, v int) { |
| 319 | l.prev = l.im |
| 320 | l.im = l.im.Set(i, v) |
| 321 | l.builder.Set(i, v) |
| 322 | l.std[i] = v |
| 323 | } |
| 324 | |
| 325 | // Slice contracts the slice and List to the range of start/end indices. |
| 326 | func (l *TList) Slice(start, end int) { |