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

Function tailNonEmpty

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

Source from the content-addressed store, hash-verified

1204 * @since 2.0.0
1205 */
1206export const tailNonEmpty = <A>(self: NonEmptyReadonlyArray<A>): Array<A> => self.slice(1)
1207
1208/**
1209 * Returns all elements except the last safely, wrapped in an `Option`.

Callers 3

Array.tsFile · 0.70
unprependFunction · 0.70
tailFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected