Module

Data.Array.ST.Partial

Package
purescript-arrays
Repository
purescript/purescript-arrays

Partial functions for working with mutable arrays using the ST effect.

This module is particularly helpful when performance is very important.

#peek Source

peek :: forall a h. Partial => Int -> STArray h a -> ST h a

Read the value at the specified index in a mutable array.

#poke Source

poke :: forall a h. Partial => Int -> a -> STArray h a -> ST h Unit

Change the value at the specified index in a mutable array.