title: how to solve badly formed lambda in lisp?
body: <p>I am trying to check if a list has a mountain aspect or not in lisp.
  e.g:1,5,9,6,4,3 </p>
  
  <p>l is my list and aux is 0-the ascending part of l or 1-the descending part of the list.
  muntemain  just call munte starting with aux=0,the ascending part</p>
  
  <p>my error is : </p>
  
  <pre><code> Badly formed lambda: (AND (&lt; (CAR L) (CAR (CDR L))) (EQ AUX 0))
  </code></pre>
  
  <p>and I can't see the problem.Can someone help please?</p>
  
  <pre><code>(defun munte (l aux)
        (cond 
            ((and (atom l) (null aux)) NIL)
            ((and (null l) (null aux)) NIL)
            ((and (atom l) (eq aux 1)) T)
            ((and (null l) (eq aux 1) T)
            ((and (&lt; (car l) (car(cdr l))) (eq aux 0)) (munte(cdr l) 0))
            ((and (or (&gt; (car l) (cadr l)) (= (car l) (cadr l))) (eq aux 0))(munte(cdr l) 1))
            ( and (&gt; (car l) (cadr l)) (eq aux 1)) (munte(cdr l) 1))
            (T NIL)
  )
  )
  
  (defun muntemain (l)
  (cond 
           ((&gt; (car l) (cadr l)) NIL)
           ((&lt; (length l) 2) NIL)
           (T (munte l 0))
  )
  )
  </code></pre>