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

Function last

packages/effect/src/internal/sink.ts:1509–1510  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1507
1508/** @internal */
1509export const last = <In>(): Sink.Sink<Option.Option<In>, In, In> =>
1510 foldLeftChunks(Option.none<In>(), (s, input) => Option.orElse(Chunk.last(input), () => s))
1511
1512/** @internal */
1513export const leftover = <L>(chunk: Chunk.Chunk<L>): Sink.Sink<void, unknown, L> =>

Callers

nothing calls this directly

Calls 2

foldLeftChunksFunction · 0.85
lastMethod · 0.80

Tested by

no test coverage detected