TEST 19

matricola: ______________________________

nome (solo se non si ricorda la matricola): __________________________________


Show the environment at the end of the evaluation of the following Scheme expression
(let ((f (lambda (x) (+ x 1))))
((lambda (y) y) (f 2)))













Consider the following Scheme function:
(define (f n m)
   (if (= n 0)
       m
       (* n (f (- n 1) (+ m 1)))))
Show the precedence relation induced by the definition of f and prove that  f (n,m) = (n+m) * n!