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

Function last

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

Source from the content-addressed store, hash-verified

702 * @since 2.0.0
703 */
704export const last = <A>(self: ReadonlyArray<A>): Option.Option<A> =>
705 isNonEmptyReadonlyArray(self) ? Option.some(lastNonEmpty(self)) : Option.none()
706
707/**
708 * Get the last element of a non empty array.

Callers

nothing calls this directly

Calls 1

lastNonEmptyFunction · 0.85

Tested by

no test coverage detected