#python #sicp
An important feature of
lexically scoped programming languages is that locally defined functions
maintain their parent environment when they are returned.
If you want to change selection, open document below and click on "Move attachment"
1.6 Higher-Order Functionsocally defined functions are often called closures.
1.6.4 Functions as Returned Values
Video:
Show
Hide We can achieve even more expressive power in our programs by creating functions
whose returned values are themselves functions. <span>An important feature of
lexically scoped programming languages is that locally defined functions
maintain their parent environment when they are returned. The following
example illustrates the utility of this feature.
Once many simple functions are defined, function composition is a natural
method of combination to include in our progr Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details