MCPcopy Create free account
hub / github.com/Effect-TS/effect / replace

Method replace

packages/effect/src/Optic.ts:1131–1133  ·  view source on GitHub ↗
(a: A, _: S)

Source from the content-addressed store, hash-verified

1129 this.set = set
1130 }
1131 override replace(a: A, _: S): S {
1132 return this.set(a)
1133 }
1134 override modify(f: (a: A) => A): (s: S) => S {
1135 return (s) => this.set(f(this.get(s)))
1136 }

Callers 15

fileToModuleNameFunction · 0.45
snippetsFunction · 0.45
Utils.tsFile · 0.45
processPathFunction · 0.45
toHttpApiPathFunction · 0.45
normalizePackagePathFunction · 0.45
escapeRegExpFunction · 0.45
parseLooseJSDocBlockFunction · 0.45
renderInlineLinksFunction · 0.45
normalizeSeeTargetFunction · 0.45
normalizeSignatureFunction · 0.45
displaySignatureFunction · 0.45

Calls 1

setMethod · 0.65

Tested by 3

normalizeSqlFunction · 0.36
unquoteFunction · 0.36
mapperFunction · 0.36