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.

#peekSTArray Source

peekSTArray :: forall r h a. Partial => STArray h a -> Int -> Eff (st :: ST h | r) a

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

#pokeSTArray Source

pokeSTArray :: forall r h a. Partial => STArray h a -> Int -> a -> Eff (st :: ST h | r) Unit

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