title: Collatz function in scheme
body: <p>So i'm trying to solve the collatz function iteratively in scheme but my test cases keep showing up as </p>
  
  <pre><code>(define (collatz n)   
      (define (collatz-iter n counter)
              (if (&lt;=  n 1)
                  1
              (if (even? n)  (collatz-iter (/ n 2) (+ counter 1))
                             (collatz-iter (+ (* n 3) 1) (+ counter 1)) 
              )
              )
      )
  )
  </code></pre>
  
  <p>However, my test cases keep resulting in "#[constant 13 #x2]". What did I write wrong, if anything?</p>