0.2.5 #43

Merged
Thilawyn merged 94 commits from next into master 2026-03-31 21:01:13 +02:00
Showing only changes of commit 34b9452c1c - Show all commits

View File

@@ -139,7 +139,7 @@ export const mapEffect: {
)),
}))
export const mapStructAt: {
export const mapStructField: {
<A extends object, K extends keyof A, ER, EW, RR, RW>(
self: Lens<A, ER, EW, RR, RW>,
key: K,
@@ -296,11 +296,11 @@ Effect.gen(function*() {
const myValueLens = ref.pipe(
fromSubscriptionRef,
mapStructAt("values"),
mapStructField("values"),
mapArrayAt(1),
)
const myValueLens2 = mapArrayAt(mapStructAt(fromSubscriptionRef(ref), "values"), 1)
const myValueLens2 = mapArrayAt(mapStructField(fromSubscriptionRef(ref), "values"), 1)
console.log(yield* ref.get, yield* myValueLens.get)
yield* set(myValueLens, 22)