title: How do I use a pair to find which of two functions will evaluate the largest value? Scheme
body: <p>Basically there is a pair made up of two functions and the code has to take the pair input <code>x</code> to find the highest evaluation for <code>x</code> and print that evaluation.<br>
  I receive the error:</p>
  
  <blockquote>
    <p>car: contract violation expected: pair? given: 4</p>
  </blockquote>
  
  <pre><code>define (max x)
     (lambda (x)     ;I wanted lambda to be the highest suitable function
   (if (&gt; (car x) (cdr x))
          (car x)
          (cdr x))))
  
   (define one-function (lambda (x) (+ x 1)))
   (define second-function (lambda (x) (+ (* 2 x) 1)))  ;my two functions
  
  ((max (cons one-function second-function)) 4)  
  </code></pre>