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

Function tailNonEmpty

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

Source from the content-addressed store, hash-verified

1270 * @since 2.0.0
1271 */
1272export const tailNonEmpty = <A>(self: NonEmptyReadonlyArray<A>): Array<A> => self.slice(1)
1273
1274/**
1275 * Returns all elements except the last safely, wrapped in an `Option`.

Callers 3

Array.tsFile · 0.70
unprependFunction · 0.70
tailFunction · 0.70

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected