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

Function lastNonEmpty

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

Source from the content-addressed store, hash-verified

720 * @since 2.0.0
721 */
722export const lastNonEmpty = <A>(self: NonEmptyReadonlyArray<A>): A => self[self.length - 1]
723
724/**
725 * Get all but the first element of an `Iterable`, creating a new `Array`, or `None` if the `Iterable` is empty.

Callers 3

Array.tsFile · 0.85
unappendFunction · 0.85
lastFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected