sicp-ex-4.2



<< Previous exercise (4.1) | Index | Next exercise (4.3) >>


meteorgan

  
  
 ;; a Assignment expressions are technically pairs and will be evaluated as applications. Evaluating an assignment as an application will cause the evaluator to try to evaluate the assignment variable instead of treating it as a symbol. 
  
 ;; b 
 (define (application? exp) (tagged-list? exp 'call)) 
 (define (operator exp) (cadr exp)) 
 (define (operands exp) (cddr exp))