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

Function unprepend

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

Source from the content-addressed store, hash-verified

1017 * @since 2.0.0
1018 */
1019export const unprepend = <A>(
1020 self: NonEmptyReadonlyArray<A>
1021): [firstElement: A, remainingElements: Array<A>] => [headNonEmpty(self), tailNonEmpty(self)]
1022
1023/**
1024 * 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