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

Function tail

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

Source from the content-addressed store, hash-verified

1178 * @since 2.0.0
1179 */
1180export function tail<A>(self: Iterable<A>): Option.Option<Array<A>> {
1181 const as = fromIterable(self)
1182 return isReadonlyArrayNonEmpty(as) ? Option.some(tailNonEmpty(as)) : Option.none()
1183}
1184
1185/**
1186 * 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