()
| 98 | * @category constructors |
| 99 | */ |
| 100 | export const empty = <A = never>(): MutableList<A> => { |
| 101 | const list = Object.create(MutableListProto) |
| 102 | list.head = undefined |
| 103 | list.tail = undefined |
| 104 | list._length = 0 |
| 105 | return list |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * Creates a new `MutableList` from an iterable collection of values. |