title: In a simple script to return the minimum of a list in scheme only the first value of the list is being returned by my solution. What's the bug?
body: <pre><code>(define (minim lst)
    (COND
     ((NULL? (CDR lst)) (CAR lst))
     (&lt; (CAR lst) (minim (CDR lst)) (CAR lst))
    (ELSE (minim (CDR lst))))
    )
  </code></pre>
  
  <blockquote>
    <p>(minim '(3 4 2 9 3 8))
    3</p>
  </blockquote>
  
  <p>I've figured out that it is the second line that is being evaluated and returning the (CAR of any list). What am I missing?</p>