#python #sicp
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.
If you want to change selection, open document below and click on "Move attachment"
1.6 Higher-Order Functionsc 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 read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details