Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1139
class
LensImpl<S, A> extends OptionalImpl<S, A> implements Lens<S, A> {
Callers
nothing calls this directly
Calls
3
set
Method · 0.65
get
Method · 0.65
f
Function · 0.50
Tested by
no test coverage detected