I'm trying to access specific element of matrix. For instance to get every second element of sublist and give as single list back.
data Matrix a = M [[a]]
rowMatrix :: [[Int]] -> Int -> a
for ex rowMatrix [[1,2,3,4], [5,6,7,8],[9,10,11,12]] 3 ---> [3,7,11]