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

Function prependAllUnsafe

packages/effect/src/MutableList.ts:286–294  ·  view source on GitHub ↗
(self: MutableList<A>, messages: ReadonlyArray<A>, mutable = false)

Source from the content-addressed store, hash-verified

284 * @since 4.0.0
285 */
286export 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.

Callers 1

prependAllFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected