MCPcopy Create free account
hub / github.com/effect-app/libs / prepend

Function prepend

repos/effect/packages/effect/src/MutableList.ts:342–350  ·  view source on GitHub ↗
(self: MutableList<A>, message: A)

Source from the content-addressed store, hash-verified

340 * const list = MutableList.make<number>()
341 * MutableList.append(list, 1)
342 * const items = [2, 3, 4]
343 * MutableList.appendAllUnsafe(list, items, true) // => 3
344 *
345 * MutableList.toArray(list) // => [1, 2, 3, 4]
346 * ```
347 *
348 * @category mutations
349 * @since 4.0.0
350 */
351export const appendAllUnsafe = <A>(self: MutableList<A>, messages: ReadonlyArray<A>, mutable = false): number => {
352 if (messages.length === 0) {
353 return 0

Callers 1

Array.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…