title: difference between functions for getting the last element in Haskell
body: <p>I am trying to solve the problem in the minimum number of characters, but the testing system does not want to accept the code with <code>last</code>, only <code>!!</code>. What's the difference between <code>last someList</code> and <code>someList !! (length someList - 1)</code>? Data.List is imported.</p>