Question: et env be an environment { x : NumValue ( 2 5 ) , y : NumValue ( 3 0 )
et env be an environment
x: NumValuey: NumValuez: NumValuef: Closurex PlusIdentxConst env
Suppose we wish to extend env to handle a recursive function call
let rec f e in
Let env denote the environment envfx e env
Which of the following values is obtained when we lookup f in env
envx is undefined since x is the formal argument for the definition of g and is resolved only at its call site.
b
envg Closurex e env
c
envz NumValue
d
envg is undefined
e
envx envx
f
envg Closurex e env
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
