title: Return a specific element in a list - LISP
body: <p>I'm trying to write a function called: get-element (board coords) that takes a board and a pair of coords representing a board position as input. The first element of the pair represents the column number and the second represents the row number (indexing starts from 0). The function returns the contents of that board position, which can be either X, O or NIL. Using the following test board state. </p>
  
  <pre><code>    (defparameter *test-board*
          '((nil nil nil nil nil nil)
            (O   nil nil nil nil nil)
            (X   nil nil nil nil nil)
            (X   X   O   nil nil nil)
            (O   O   X   nil nil nil)
            (nil nil nil nil nil nil)
            (nil nil nil nil nil nil)))
  </code></pre>
  
  <p>The function should work like so: </p>
  
  <pre><code>(get-element *test-board* ‘(0 0))
  &gt; NIL
  </code></pre>
  
  <p>I can't seem to understand the process to gain such as output. So far my code is as follows (But this is seriously wrong!):</p>
  
  <pre><code>  (col(nth 0 coords))
    (row(nth 1 coords)))
  </code></pre>
  
  <p>Any help with understanding how to retrieve specific elements within a list would be much appreciated! </p>