I currently have a 2D array declared as:
import Data.Array.Unboxed
listArray ((0,0), (9,9)) (replicate 100 'f') ∷ UArray (Int, Int) Char
I am trying to set a value in this array from a set of coordinates, (x, y)
stored as a tuple, changing the value into a t
, instead of an f
. I have fooled around with lenses, however, I have had no success with them.
Any help is appreciated!