(self: MutableList<A>)
| 390 | * @since 4.0.0 |
| 391 | */ |
| 392 | export const clear = <A>(self: MutableList<A>): void => { |
| 393 | self.head = self.tail = undefined |
| 394 | self.length = 0 |
| 395 | } |
| 396 | |
| 397 | /** |
| 398 | * Takes up to N elements from the beginning of the MutableList and returns them as an array. |