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

Function unprepend

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

Source from the content-addressed store, hash-verified

1076 * @since 2.0.0
1077 */
1078export const unprepend = <A>(
1079 self: NonEmptyReadonlyArray<A>
1080): [firstElement: A, remainingElements: Array<A>] => [headNonEmpty(self), tailNonEmpty(self)]
1081
1082/**
1083 * Splits a non-empty array into all elements except the last, and the last

Callers

nothing calls this directly

Calls 1

tailNonEmptyFunction · 0.70

Tested by

no test coverage detected