MCPcopy Index your code
hub / github.com/Effect-TS/effect / unprepend

Function unprepend

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

Source from the content-addressed store, hash-verified

648 * @since 2.0.0
649 */
650export const unprepend = <A>(
651 self: NonEmptyReadonlyArray<A>
652): [firstElement: A, remainingElements: Array<A>] => [headNonEmpty(self), tailNonEmpty(self)]
653
654/**
655 * Return a tuple containing a copy of the `NonEmptyReadonlyArray` without its last element, and that last element.

Callers

nothing calls this directly

Calls 2

headNonEmptyFunction · 0.85
tailNonEmptyFunction · 0.70

Tested by

no test coverage detected