effect-io-ai

Package: effect
Module: TArray

TArray.updateSTM

Atomically updates element in the array with given transactional effect.

Signature

declare const updateSTM: { <A, R, E>(index: number, f: (value: A) => STM.STM<A, E, R>): (self: TArray<A>) => STM.STM<void, E, R>; <A, R, E>(self: TArray<A>, index: number, f: (value: A) => STM.STM<A, E, R>): STM.STM<void, E, R>; }

Source

Since v2.0.0