#python #sicp
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.
If you want to change selection, open document below and click on "Move attachment"
1.6 Higher-Order Functions=f1]
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. <span>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.
Subsequently, the name sqrt_update resolves to this newly defined function,
which is passed as an argument to improve . Within the body of
improve , we must apply our update fun Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details