title: How would I write a function in Racket which produces true if all the numbers in a list are the same and false otherwise?
body: <p>How would I define a function in Dr. Racket which produces boolean true if all the numbers in a list are the same and false otherwise.
  This is my code so far:</p>
  <pre><code>(define (same-numbers? lst)
    (cond
      [(empty? (rest lst)) (first lst)]
      [else (equal? (first lst)(same-numbers? (rest lst)))]))
  </code></pre>
  <p>If I type in:</p>
  <pre><code>(same-numbers? (cons 5 (cons 5 (cons 5 empty))))
  </code></pre>
  <p>My desired output is true. However, instead, I get a false. How would I correct this?</p>