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

Function prependAll

packages/effect/src/MutableList.ts:253–254  ·  view source on GitHub ↗
(self: MutableList<A>, messages: Iterable<A>)

Source from the content-addressed store, hash-verified

251 * @since 4.0.0
252 */
253export const prependAll = <A>(self: MutableList<A>, messages: Iterable<A>): void =>
254 prependAllUnsafe(self, Arr.fromIterable(messages), !Array.isArray(messages))
255
256/**
257 * Prepends all elements from a ReadonlyArray to the beginning of the MutableList.

Callers 1

Iterable.tsFile · 0.85

Calls 1

prependAllUnsafeFunction · 0.85

Tested by

no test coverage detected