title: Multiple lists haskell
body: <p>How do you find nth elements in the matrix at a given row and column position? For example, if you have</p>
  
  <pre><code>type Matrice a = [[a]]
  
  example :: Matrice Int  
  example = [ [3, 5],                
          [2, 1],                
          [0, 4],                
          [6, 8] ] 
  
  Prelude &gt;  example 0 1
        5
  Prelude &gt;  example 2 0
        0
  Prelude &gt;  example 1 1
        2
  </code></pre>
  
  <p>I know how to work out with only given list such as </p>
  
  <pre><code>nth :: Int -&gt; [a] -&gt; Maybe a
  nth _ []       = Nothing
  nth 1 (x : _)  = Just x
  nth n (_ : xs) = nth (n - 1) xs
  </code></pre>
  
  <p>But my question is, how do you access nth element in a matrix as in the given example</p>