title: Haskell - how to create a function that returns the fifth element from a list
body: <p>How to create a function in Haskell that returns the fifth element from a list. </p>
  
  <p>Something like this:</p>
  
  <pre><code>fifth [] = []!!4
  </code></pre>
  
  <p>Should return this:</p>
  
  <pre><code>*Main&gt; fifth [1,2,3,20,30,40]
  30
  </code></pre>