I'm currently in a project that will need to access elements in an Array-Matrix in Haskell. So, I've tried googling it, searching everywhere.
The funcion is supposed to be like this:
getElementIndex :: Int -> Array (Int,Int) Int -> (Int,Int)
And it must return the I and J indexes of the element in the matrix.