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

Function lastNonEmpty

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

Source from the content-addressed store, hash-verified

1150 * @since 2.0.0
1151 */
1152export const lastNonEmpty = <A>(self: NonEmptyReadonlyArray<A>): A => self[self.length - 1]
1153
1154/**
1155 * Returns all elements except the first safely, wrapped in an `Option`.

Callers 3

Array.tsFile · 0.85
unappendFunction · 0.85
lastFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected