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

Function allocate

packages/effect/src/Array.ts:176–176  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

174 * @since 2.0.0
175 */
176export const allocate = <A = never>(n: number): Array<A | undefined> => new Array(n)
177
178/**
179 * Creates a `NonEmptyArray` of length `n` where element `i` is computed by `f(i)`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected