(f: (e: EE1) => T.Effect<R2, never, unknown>)
| 43 | |
| 44 | export const tapLeft = |
| 45 | <R1, R2, E1, EE1, A1>(f: (e: EE1) => T.Effect<R2, never, unknown>) => |
| 46 | (stream: S.Stream<R1, E1, E.Either<EE1, A1>>): S.Stream<R1 & R2, E1, E.Either<EE1, A1>> => |
| 47 | pipe( |
| 48 | stream, |
| 49 | S.tap((val) => (E.isLeft(val) ? f(val.left) : T.succeed(null))), |
| 50 | ) |
| 51 | |
| 52 | export const tapRightEither = |
| 53 | <R1, R2, E1, EE1, EE2, A1>(f: (o: A1) => T.Effect<R2, never, E.Either<EE2, unknown>>) => |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…