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

Function last

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

Source from the content-addressed store, hash-verified

1510 * @since 2.0.0
1511 */
1512export const last = <A>(self: Chunk<A>): Option<A> => get(self, self.length - 1)
1513
1514/**
1515 * Returns the last element of this chunk.

Callers

nothing calls this directly

Calls 1

getFunction · 0.70

Tested by

no test coverage detected