MCPcopy
hub / github.com/Effect-TS/effect / zipRight

Function zipRight

packages/typeclass/src/SemiApplicative.ts:94–106  ·  view source on GitHub ↗
(F: SemiApplicative<F>)

Source from the content-addressed store, hash-verified

92 * @since 0.24.0
93 */
94export const zipRight = <F extends TypeLambda>(F: SemiApplicative<F>): {
95 <R2, O2, E2, B>(
96 that: Kind<F, R2, O2, E2, B>
97 ): <R1, O1, E1, _>(self: Kind<F, R1, O1, E1, _>) => Kind<F, R1 & R2, O2 | O1, E2 | E1, B>
98 <R1, O1, E1, _, R2, O2, E2, B>(
99 self: Kind<F, R1, O1, E1, _>,
100 that: Kind<F, R2, O2, E2, B>
101 ): Kind<F, R1 & R2, O1 | O2, E1 | E2, B>
102} =>
103 dual(2, <R1, O1, E1, _, R2, O2, E2, B>(
104 self: Kind<F, R1, O1, E1, _>,
105 that: Kind<F, R2, O2, E2, B>
106 ): Kind<F, R1 & R2, O1 | O2, E1 | E2, B> => zipWith(F)(self, that, SK))
107
108/**
109 * Lifts a binary function into `F`.

Callers

nothing calls this directly

Calls 1

zipWithFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…