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

Method replace

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

Source from the content-addressed store, hash-verified

1144 this.set = set
1145 }
1146 override replace(a: A, _: S): S {
1147 return this.set(a)
1148 }
1149 override modify(f: (a: A) => A): (s: S) => S {
1150 return (s) => this.set(f(this.get(s)))
1151 }

Callers 15

fileToModuleNameFunction · 0.45
snippetsFunction · 0.45
Utils.tsFile · 0.45
toHttpApiPathFunction · 0.45
githubClientFunction · 0.45
encodePackageNameFunction · 0.45
rewriteNotFunction · 0.45
normalizePackagePathFunction · 0.45
escapeRegExpFunction · 0.45
resolveJSDocImportsFunction · 0.45
parseLooseJSDocBlockFunction · 0.45
renderInlineLinksFunction · 0.45

Calls 1

setMethod · 0.65

Tested by 15

githubClientFunction · 0.36
normalizeSqlFunction · 0.36
unquoteFunction · 0.36
dumpConnectionFunction · 0.36
planFunction · 0.36
decodeFunction · 0.36
encodeRfc3986Function · 0.36
makeSocketServerFunction · 0.36
textFunction · 0.36
textFunction · 0.36
uuidStringFunction · 0.36
mapperFunction · 0.36