Prepend adds v to the beginning of the slice and List.
(v int)
| 308 | |
| 309 | // Prepend adds v to the beginning of the slice and List. |
| 310 | func (l *TList) Prepend(v int) { |
| 311 | l.prev = l.im |
| 312 | l.im = l.im.Prepend(v) |
| 313 | l.builder.Prepend(v) |
| 314 | l.std = append([]int{v}, l.std...) |
| 315 | } |
| 316 | |
| 317 | // Set updates the value at index i to v in the slice and List. |
| 318 | func (l *TList) Set(i, v int) { |
no outgoing calls
no test coverage detected