MCPcopy Create free account
hub / github.com/Effect-TS/effect / clear

Function clear

packages/effect/src/MutableList.ts:392–395  ·  view source on GitHub ↗
(self: MutableList<A>)

Source from the content-addressed store, hash-verified

390 * @since 4.0.0
391 */
392export 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.

Callers 4

takeNFunction · 0.70
takeNVoidFunction · 0.70
takeFunction · 0.70
filterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected