#python #sicp
The name of a function is repeated twice, once in the frame and again as part of the function itself.
The name appearing in the function is called the intrinsic name. The name in
a frame is a bound name. There is a difference between the two: different
names may refer to the same function, but that function itself has only one
intrinsic name.
If you want to change selection, open document below and click on "Move attachment"
1.3 Defining New Functionsnc square(x)
Each function is a line that starts with func , followed by the function
name and formal parameters. Built-in functions such as mul do not have
formal parameter names, and so ... is always used instead.
<span>The name of a function is repeated twice, once in the frame and again as part of the function itself.
The name appearing in the function is called the intrinsic name. The name in
a frame is a bound name. There is a difference between the two: different
names may refer to the same function, but that function itself has only one
intrinsic name.
The name bound to a function in a frame is the one used during evaluation. The
intrinsic name of a function does not play a role in evaluation. Step through
the example below using th Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details