effect-io-ai

Package: effect
Module: TArray

TArray.update

Updates element in the array with given function.

Signature

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

Source

Since v2.0.0