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

Function unappend

repos/effect/packages/effect/src/Array.ts:1058–1060  ·  view source on GitHub ↗
(
  self: NonEmptyReadonlyArray<A>
)

Source from the content-addressed store, hash-verified

1056 * Returns the first element of an array safely wrapped in `Option.some`, or
1057 * `Option.none` if the array is empty.
1058 *
1059 * **When to use**
1060 *
1061 * Use to safely get the first element of an array that may be empty.
1062 *
1063 * **Example** (Getting the first element)

Callers

nothing calls this directly

Calls 2

initNonEmptyFunction · 0.85
lastNonEmptyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…