MCPcopy
hub / github.com/Effect-TS/effect / foldChunks

Function foldChunks

packages/effect/src/internal/sink.ts:934–938  ·  view source on GitHub ↗
(
  s: S,
  contFn: Predicate<S>,
  f: (s: S, chunk: Chunk.Chunk<In>) => S
)

Source from the content-addressed store, hash-verified

932
933/** @internal */
934export const foldChunks = <S, In>(
935 s: S,
936 contFn: Predicate<S>,
937 f: (s: S, chunk: Chunk.Chunk<In>) => S
938): Sink.Sink<S, In> => suspend(() => new SinkImpl(foldChunksReader(s, contFn, f)))
939
940/** @internal */
941const foldChunksReader = <S, In>(

Callers 2

foldLeftChunksFunction · 0.85
takeFunction · 0.85

Calls 2

foldChunksReaderFunction · 0.85
suspendFunction · 0.70

Tested by

no test coverage detected