0.2.5 #43
@@ -41,7 +41,7 @@ export const make = <A, ER, RR, EW, RW>(
|
|||||||
? options.modify
|
? options.modify
|
||||||
: <B, E1 = never, R1 = never>(f: (a: A) => Effect.Effect<readonly [B, A], E1, R1>) =>
|
: <B, E1 = never, R1 = never>(f: (a: A) => Effect.Effect<readonly [B, A], E1, R1>) =>
|
||||||
Effect.flatMap(options.get, a =>
|
Effect.flatMap(options.get, a =>
|
||||||
Effect.flatMap(f(a), ([b, next]) => Effect.map(options.set(next), () => b)
|
Effect.flatMap(f(a), ([b, next]) => Effect.as(options.set(next), b)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
}, LensPrototype)
|
}, LensPrototype)
|
||||||
|
|||||||
Reference in New Issue
Block a user