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

Function foldEffect

packages/effect/src/internal/sink.ts:984–988  ·  view source on GitHub ↗
(
  s: S,
  contFn: Predicate<S>,
  f: (s: S, input: In) => Effect.Effect<S, E, R>
)

Source from the content-addressed store, hash-verified

982
983/** @internal */
984export const foldEffect = <S, In, E, R>(
985 s: S,
986 contFn: Predicate<S>,
987 f: (s: S, input: In) => Effect.Effect<S, E, R>
988): Sink.Sink<S, In, In, E, R> => suspend(() => new SinkImpl(foldEffectReader(s, contFn, f)))
989
990/** @internal */
991const foldEffectReader = <S, In, R, E>(

Callers 3

collectAllUntilEffectFunction · 0.85
foldLeftEffectFunction · 0.85
foldUntilEffectFunction · 0.85

Calls 2

foldEffectReaderFunction · 0.85
suspendFunction · 0.70

Tested by

no test coverage detected