MCPcopy Index your code
hub / github.com/Effect-TS/effect / zipLeft

Function zipLeft

packages/typeclass/src/Chainable.ts:23–35  ·  view source on GitHub ↗
(F: Chainable<F>)

Source from the content-addressed store, hash-verified

21 * @since 0.24.0
22 */
23export const zipLeft = <F extends TypeLambda>(F: Chainable<F>): {
24 <R2, O2, E2, _>(
25 that: Kind<F, R2, O2, E2, _>
26 ): <R1, O1, E1, A>(self: Kind<F, R1, O1, E1, A>) => Kind<F, R1 & R2, O2 | O1, E2 | E1, A>
27 <R1, O1, E1, A, R2, O2, E2, _>(
28 self: Kind<F, R1, O1, E1, A>,
29 that: Kind<F, R2, O2, E2, _>
30 ): Kind<F, R1 & R2, O1 | O2, E1 | E2, A>
31} =>
32 dual(2, <R1, O1, E1, A, R2, O2, E2, _>(
33 self: Kind<F, R1, O1, E1, A>,
34 that: Kind<F, R2, O2, E2, _>
35 ): Kind<F, R1 & R2, O1 | O2, E1 | E2, A> => tap(F)(self, () => that))
36
37/**
38 * Returns an effect that effectfully "peeks" at the success of this effect.

Callers 2

schedule.tsFile · 0.50
core.tsFile · 0.50

Calls 1

tapFunction · 0.85

Tested by

no test coverage detected