MCPcopy Index your code
hub / github.com/Effect-TS/effect / last

Function last

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

Source from the content-addressed store, hash-verified

709 * @category getters
710 */
711export const last = <A>(self: List<A>): Option.Option<A> => isNil(self) ? Option.none() : Option.some(unsafeLast(self)!)
712
713/**
714 * @since 2.0.0

Callers

nothing calls this directly

Calls 2

isNilFunction · 0.85
unsafeLastFunction · 0.70

Tested by

no test coverage detected