I'm trying to get the row of a Data.Array in haskell and also get the column of an array in the form of a tuple or list.
I have something like this:
array ((0,0),(2,2)) [((i,j),3*i+j)| i <- [0..2], j <- [0..2]]
And I want to get something like:
(0,1,2)
(3,4,5)
or:
(0,3,6)
(1,4,7)