The parent of a function value is the first frame of the environment in which that function was defined.
Tags
#python #sicp
Question
What is the parent of a function value?
Answer
?
Tags
#python #sicp
Question
What is the parent of a function value?
Answer
The parent of a function value is the first frame of the environment in which that function was defined.
If you want to change selection, open original toplevel document below and click on "Move attachment"
Parent (intermediate) annotation
Open it Function values each have a new annotation that we will include in environment
diagrams from now on, a parent. The parent of a function value is the first
frame of the environment in which that function was defined.
Original toplevel document
1.6 Higher-Order Functions c average(x, y) [parent=Global] func improve(update, close, guess) [parent=Global] func approx_eq(x, y, tolerance) [parent=Global] func sqrt(a) [parent=Global] func sqrt_update(x) [parent=f1] func sqrt_close(x) [parent=f1]
<span>Function values each have a new annotation that we will include in environment
diagrams from now on, a parent. The parent of a function value is the first
frame of the environment in which that function was defined. Functions without
parent annotations were defined in the global environment. When a user-defined
function is called, the frame created has the same parent as that function.
Subseque
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.