title: Getting list with max value from a list of lists in Racket
body: <p>Given a list of lists of integers, I need this program in racket to display the list which contains the largest value.</p>
  
  <p>For example:</p>
  
  <blockquote>
    <p>[[2000, 4, 1000, 8], [2, 7, 810, 20], [19, 101, 4, 9]], </p>
  </blockquote>
  
  <p>should display </p>
  
  <blockquote>
    <p>[2000, 4, 100, 8] </p>
  </blockquote>
  
  <p>as a result since 2000 is the largest value.</p>
  
  <p>However, the following program is giving me the error:</p>
  
  <pre><code>application: not a procedure;
   expected a procedure that can be applied to arguments
    given: '((28 14 32) (24 14 100))
    arguments...: [none]
  </code></pre>
  
  <p>And I'm not sure why. Could somebody help? I'm quite new to racket</p>
  
  <pre><code>#lang racket
  
  (define (maxlist)
    (let loop((largest(cdr list))(m (car list)))
      (cond
        [(empty? list) m]
        [(&gt; (car list) m) (loop (cdr list)(car list))]
        [else (loop (cdr list) m)])))
  
  (define v1 (list (list 28 14 32) (list 24 14 100)))
  
  maxlist(v1)
  </code></pre>