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

Function collectLeftover

packages/effect/src/internal/sink.ts:347–350  ·  view source on GitHub ↗
(
  self: Sink.Sink<A, In, L, E, R>
)

Source from the content-addressed store, hash-verified

345
346/** @internal */
347export const collectLeftover = <A, In, L, E, R>(
348 self: Sink.Sink<A, In, L, E, R>
349): Sink.Sink<[A, Chunk.Chunk<L>], In, never, E, R> =>
350 new SinkImpl(pipe(core.collectElements(toChannel(self)), channel.map(([chunks, z]) => [z, Chunk.flatten(chunks)])))
351
352/** @internal */
353export const mapInput = dual<

Callers

nothing calls this directly

Calls 3

pipeFunction · 0.70
toChannelFunction · 0.70
mapMethod · 0.65

Tested by

no test coverage detected