MCPcopy
hub / github.com/Effect-TS/effect / modify

Method modify

packages/effect/src/Ref.ts:28–28  ·  view source on GitHub ↗
(f: (a: A) => readonly [B, A])

Source from the content-addressed store, hash-verified

26 */
27export interface Ref<in out A> extends Ref.Variance<A>, Effect.Effect<A>, Readable.Readable<A> {
28 modify<B>(f: (a: A) => readonly [B, A]): Effect.Effect<B>
29 readonly [Unify.typeSymbol]?: unknown
30 readonly [Unify.unifySymbol]?: RefUnify<this>
31 readonly [Unify.ignoreSymbol]?: RefUnifyIgnore

Callers 15

testLayerFunction · 0.65
sliceRequestUrlFunction · 0.65
sliceRequestUrlFunction · 0.65
httpMiddleware.tsFile · 0.65
keyValueStore.tsFile · 0.65
Record.tst.tsFile · 0.65
Array.tst.tsFile · 0.65
Record.test.tsFile · 0.65
FiberRef.test.tsFile · 0.65
KeyedPool.test.tsFile · 0.65

Implementers 13

ServerRequestImplpackages/platform-node/src/internal/ht
ServerRequestImplpackages/platform/src/internal/httpSer
ServerRequestImplpackages/platform-bun/src/internal/htt
RefImplpackages/effect/src/internal/ref.ts
SubscriptionRefImplpackages/effect/src/internal/subscript
TSubscriptionRefImplpackages/effect/src/internal/stm/tSubs
TRefImplpackages/effect/src/internal/stm/tRef.
SynchronizedImplpackages/effect/src/internal/effect/ci
EmptyNodepackages/effect/src/internal/hashMap/n
LeafNodepackages/effect/src/internal/hashMap/n
CollisionNodepackages/effect/src/internal/hashMap/n
IndexedNodepackages/effect/src/internal/hashMap/n

Calls

no outgoing calls

Tested by 2

testLayerFunction · 0.52
refReaderFunction · 0.52