Hyperlinkv0.8.0-beta.28

Sink

Sink.reduceEffectconsteffect/Sink.ts:1396
<S, In, E, R>(
  initial: LazyArg<S>,
  f: (s: S, input: In) => Effect.Effect<S, E, R>
): Sink<S, In, never, E, R>

A sink that reduces its inputs using the provided effectful function f starting from the specified initial state.

reducing
Source effect/Sink.ts:13964 lines
export const reduceEffect = <S, In, E, R>(
  initial: LazyArg<S>,
  f: (s: S, input: In) => Effect.Effect<S, E, R>
): Sink<S, In, never, E, R> => reduceWhileEffect(initial, constTrue, f) as any