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

Function lastNonEmpty

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

Source from the content-addressed store, hash-verified

1214 * @since 2.0.0
1215 */
1216export const lastNonEmpty = <A>(self: NonEmptyReadonlyArray<A>): A => self[self.length - 1]
1217
1218/**
1219 * 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