MCPcopy Create free account
hub / github.com/effect-app/libs / tupleTap

Function tupleTap

packages/effect-app/src/Effect.ts:67–71  ·  view source on GitHub ↗
(
  f: (b: B) => (a: A) => Effect.Effect<C, E, R>
)

Source from the content-addressed store, hash-verified

65 * taps the Effect, returning A.
66 */
67export function tupleTap<A, B, R, E, C>(
68 f: (b: B) => (a: A) => Effect.Effect<C, E, R>
69) {
70 return (t: readonly [A, B]) => Effect.sync(() => t[0]).pipe(Effect.tap(f(t[1])))
71}
72
73/**
74 * Takes [A, B], applies it to an Effect function,

Callers 1

tupleTap_Function · 0.85

Calls 3

syncMethod · 0.80
fFunction · 0.70
pipeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…