0.1.2 #1

Merged
Thilawyn merged 8 commits from next into master 2026-03-27 14:32:05 +01:00
Showing only changes of commit 9f5b65c2c2 - Show all commits

View File

@@ -36,6 +36,22 @@ export const focusArrayAt: {
index: number, index: number,
): Subscribable.Subscribable<A[number], E | NoSuchElementException, R> => Subscribable.mapEffect(self, Array.get(index))) ): Subscribable.Subscribable<A[number], E | NoSuchElementException, R> => Subscribable.mapEffect(self, Array.get(index)))
/**
* Narrows the focus to an indexed element of a readonly tuple.
*/
export const focusTupleAt: {
<T extends readonly [any, ...any[]], I extends number, E, R>(
self: Subscribable.Subscribable<T, E, R>,
index: I,
): Subscribable.Subscribable<T[I], E, R>
<T extends readonly [any, ...any[]], I extends number, E, R>(
index: I
): (self: Subscribable.Subscribable<T, E, R>) => Subscribable.Subscribable<T[I], E, R>
} = Function.dual(2, <T extends readonly [any, ...any[]], I extends number, E, R>(
self: Subscribable.Subscribable<T, E, R>,
index: I,
): Subscribable.Subscribable<T[I], E, R> => Subscribable.map(self, Array.unsafeGet(index)))
/** /**
* Narrows the focus to an indexed element of `Chunk`. * Narrows the focus to an indexed element of `Chunk`.
*/ */