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

Method modify

packages/effect/src/Optic.ts:1146–1148  ·  view source on GitHub ↗
(f: (a: A) => A)

Source from the content-addressed store, hash-verified

1144 this.replace = replace
1145 }
1146 override modify(f: (a: A) => A): (s: S) => S {
1147 return (s) => this.replace(f(this.get(s)), s)
1148 }
1149}
1150
1151class PrismImpl<S, A> extends OptionalImpl<S, A> implements Prism<S, A> {

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
fFunction · 0.50
replaceMethod · 0.45

Tested by

no test coverage detected