(
options: {
readonly initial: S
readonly maxCost: number
readonly cost: (s: S, input: In) => Effect.Effect<number, E, R>
readonly body: (s: S, input: In) => Effect.Effect<S, E2, R2>
}
)
| 1233 | |
| 1234 | /** @internal */ |
| 1235 | export const foldWeightedEffect = <S, In, E, R, E2, R2>( |
| 1236 | options: { |
| 1237 | readonly initial: S |
| 1238 | readonly maxCost: number |
| 1239 | readonly cost: (s: S, input: In) => Effect.Effect<number, E, R> |
| 1240 | readonly body: (s: S, input: In) => Effect.Effect<S, E2, R2> |
| 1241 | } |
| 1242 | ): Sink.Sink<S, In, In, E | E2, R | R2> => |
| 1243 | foldWeightedDecomposeEffect({ |
| 1244 | ...options, |
| 1245 | decompose: (input) => Effect.succeed(Chunk.of(input)) |
| 1246 | }) |
| 1247 | |
| 1248 | const foldWeightedDecomposeEffectLoop = <S, In, E, R, E2, R2, E3, R3>( |
| 1249 | s: S, |
nothing calls this directly
no test coverage detected
searching dependent graphs…