title: Delete element from List in Scheme
body: <p>I have  list in this form</p>
  
  <pre><code>( (1 3) (2 2) (3 1) (4 5) (5 1)))
  </code></pre>
  
  <p>and I want to delete an item let's say <code>(3 1)</code></p>
  
  <p>So the result will be </p>
  
  <pre><code>( (1 3) (2 2) (4 5) (5 1)))
  </code></pre>
  
  <p>I have written something like this and I do not know why it is not running correctly.</p>
  
  <pre><code>(define (deleteItem list item)
    (cond
      ((equal? item (car  list)) (cdr list))
      (cons (car  list)(deleteItem(cdr list) item))))
  </code></pre>