title: Getting the second element of a list in Prolog
body: <p>Having some trouble with this task.</p>
  
  <p>Currently I have tried this, which I know is wrong because I'm not sure how to divide L into its head and tail, however this is sort of the idea im going for. </p>
  
  <pre><code>second(L,E) :- [H | E | T]
  </code></pre>
  
  <p>Which I think of that E has to be after the head which would make it the second element. However I'm new to this language and would like some insight. How do I get this head and tail from L the way the predicate is written. Some insight of this problem would be much appreciated. Thank you. </p>