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

Method modify

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

Source from the content-addressed store, hash-verified

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 }
1137}
1138
1139class LensImpl<S, A> extends OptionalImpl<S, A> implements Lens<S, A> {

Callers

nothing calls this directly

Calls 3

setMethod · 0.65
getMethod · 0.65
fFunction · 0.50

Tested by

no test coverage detected