MCPcopy
hub / github.com/Effect-TS/effect / tail

Function tail

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

Source from the content-addressed store, hash-verified

728 * @since 2.0.0
729 */
730export const tail = <A>(self: Iterable<A>): Option.Option<Array<A>> => {
731 const input = fromIterable(self)
732 return isNonEmptyReadonlyArray(input) ? Option.some(tailNonEmpty(input)) : Option.none()
733}
734
735/**
736 * Get all but the first element of a `NonEmptyReadonlyArray`.

Callers

nothing calls this directly

Calls 2

fromIterableFunction · 0.70
tailNonEmptyFunction · 0.70

Tested by

no test coverage detected