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

Function tail

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

Source from the content-addressed store, hash-verified

1243 * @since 2.0.0
1244 */
1245export function tail<A>(self: Iterable<A>): Option.Option<Array<A>> {
1246 const as = fromIterable(self)
1247 return isReadonlyArrayNonEmpty(as) ? Option.some(tailNonEmpty(as)) : Option.none()
1248}
1249
1250/**
1251 * Returns all elements except the first of a `NonEmptyReadonlyArray`.

Callers

nothing calls this directly

Calls 3

someMethod · 0.80
fromIterableFunction · 0.70
tailNonEmptyFunction · 0.70

Tested by

no test coverage detected