#python #sicp
Aspects of a functional abstraction. To master the use of a functional
abstraction, it is often useful to consider its three core attributes. The
domain of a function is the set of arguments it can take. The range of a
function is the set of values it can return. The intent of a function is the
relationship it computes between inputs and output (as well as any side effects
it might generate).
If you want to change selection, open document below and click on "Move attachment"
1.3 Defining New Functionsuot;black box". A programmer should not
need to know how the function is implemented in order to use it. The Python
Library has this property. Many developers use the functions defined there, but
few ever inspect their implementation.
<span>Aspects of a functional abstraction. To master the use of a functional
abstraction, it is often useful to consider its three core attributes. The
domain of a function is the set of arguments it can take. The range of a
function is the set of values it can return. The intent of a function is the
relationship it computes between inputs and output (as well as any side effects
it might generate). Understanding functional abstractions via their domain,
range, and intent is critical to using them correctly in a complex program.
For example, any square function that we use to i Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details