(initial: LazyArg<S>, f: (s: S, input: In) => S)
| 1356 | */ |
| 1357 | export const reduceWhileArrayEffect = <S, In, E, R>( |
| 1358 | initial: LazyArg<S>, |
| 1359 | predicate: Predicate<S>, |
| 1360 | f: (s: S, input: NonEmptyReadonlyArray<In>) => Effect.Effect<S, E, R> |
| 1361 | ): Sink<S, In, never, E, R> => |
| 1362 | fromTransform((upstream) => { |
| 1363 | let state = initial() |
| 1364 | if (!predicate(state)) { |
| 1365 | return Effect.succeed([state] as const) |
| 1366 | } |
| 1367 | return upstream.pipe( |
no test coverage detected
searching dependent graphs…