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

Function ifDiff_

packages/effect-app/src/Effect.ts:85–91  ·  view source on GitHub ↗
(
  n: I,
  orig: I,
  f: (i: I) => Effect.Effect<A, E, R>
)

Source from the content-addressed store, hash-verified

83}
84
85export function ifDiff_<I, R, E, A>(
86 n: I,
87 orig: I,
88 f: (i: I) => Effect.Effect<A, E, R>
89) {
90 return n !== orig ? f(n) : Effect.void
91}
92
93export function ifDiff<I, R, E, A>(n: I, orig: I) {
94 return (f: (i: I) => Effect.Effect<A, E, R>) => ifDiff_(n, orig, f)

Callers 2

ifDiffRFunction · 0.85
ifDiffFunction · 0.85

Calls 1

fFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…