title: Scheme procedure with 2 arguments
body: <p>Learned to code C, long ago; wanted to try something new and different with Scheme.  I am trying to make a procedure that accepts two arguments and returns the greater of the two, e.g.</p>
  
  <pre><code>(define (larger x y)
    (if (&gt; x y)
      x
      (y)))
  
  (larger 1 2)
  </code></pre>
  
  <p>or,</p>
  
  <pre><code>(define larger
    (lambda (x y)
      (if (&gt; x y)
        x (y))))
  
  (larger 1 2)
  </code></pre>
  
  <p>I believe both of these are equivalent i.e. <em>if x > y, return x; else, return y</em>.</p>
  
  <p>When I try either of these, I get errors e.g. <em>2 is not a function</em> or <em>error: cannot call: 2</em></p>
  
  <p>I've spent a few hours reading over SICP and TSPL, but nothing is jumping out (perhaps I need to use a "list" and reference the two elements via <em>car</em> and <em>cdr</em>?)</p>
  
  <p>Any help appreciated.  If I am mis-posting, missed a previous answer to the same question, or am otherwise inappropriate, my apologies.</p>