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

Function lastUnsafe

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

Source from the content-addressed store, hash-verified

1471 * @since 4.0.0
1472 */
1473export const lastUnsafe = <A>(self: Chunk<A>): A => getUnsafe(self, self.length - 1)
1474
1475/**
1476 * Returns the last element of this non empty chunk.

Callers

nothing calls this directly

Calls 1

getUnsafeFunction · 0.70

Tested by

no test coverage detected