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

Function init

repos/effect/packages/effect/src/Array.ts:1242–1245  ·  view source on GitHub ↗
(self: Iterable<A>)

Source from the content-addressed store, hash-verified

1240/**
1241 * Returns all elements except the last of a `NonEmptyReadonlyArray`.
1242 *
1243 * **When to use**
1244 *
1245 * Use to get all elements before the last when the array is known to be non-empty.
1246 *
1247 * **Example** (Getting init of a non-empty array)
1248 *

Callers

nothing calls this directly

Calls 3

initNonEmptyFunction · 0.85
someMethod · 0.80
fromIterableFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…