MCPcopy
hub / github.com/Effect-TS/effect / empty

Function empty

packages/effect/src/MutableList.ts:100–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98 * @category constructors
99 */
100export 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.

Callers 1

fromIterableFunction · 0.70

Calls 1

createMethod · 0.80

Tested by

no test coverage detected