(self: MutableList<A>, message: A)
| 187 | * @since 2.0.0 |
| 188 | */ |
| 189 | export const append = <A>(self: MutableList<A>, message: A): void => { |
| 190 | if (!self.tail) { |
| 191 | self.head = self.tail = emptyBucket() |
| 192 | } else if (!self.tail.mutable) { |
| 193 | self.tail.next = emptyBucket() |
| 194 | self.tail = self.tail.next |
| 195 | } |
| 196 | self.tail!.array.push(message) |
| 197 | self.length++ |
| 198 | } |
| 199 | |
| 200 | /** |
| 201 | * Prepends an element to the beginning of the MutableList. |
nothing calls this directly
no test coverage detected