Function
prependAllUnsafe
(self: MutableList<A>, messages: ReadonlyArray<A>, mutable = false)
Source from the content-addressed store, hash-verified
| 284 | * @since 4.0.0 |
| 285 | */ |
| 286 | export const prependAllUnsafe = <A>(self: MutableList<A>, messages: ReadonlyArray<A>, mutable = false): void => { |
| 287 | self.head = { |
| 288 | array: messages as Array<A>, |
| 289 | mutable, |
| 290 | offset: 0, |
| 291 | next: self.head |
| 292 | } |
| 293 | self.length += self.head.array.length |
| 294 | } |
| 295 | |
| 296 | /** |
| 297 | * Appends all elements from an iterable to the end of the MutableList. |
Tested by
no test coverage detected