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

Function last

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

Source from the content-addressed store, hash-verified

1439 * @since 2.0.0
1440 */
1441export const last = <A>(self: Chunk<A>): Option<A> => get(self, self.length - 1)
1442
1443/**
1444 * Returns the last element of this chunk.

Callers

nothing calls this directly

Calls 1

getFunction · 0.70

Tested by

no test coverage detected