If you want to change selection, open document below and click on "Move attachment"
1.6 Higher-Order Functionsns explicitly as elements in our
programming language, so that they can be handled just like other computational
elements.
In general, programming languages impose restrictions on the ways in which
computational elements can be manipulated. <span>Elements with the fewest restrictions
are said to have first-class status. Some of the "rights and privileges" of
first-class elements are:
They may be bound to names. They may be passed as arguments to functions. They may be returned as the results of functions. They may be included in data structures.
Python awards functions full first-class status, and the resulting gain in
expressive power is enormous.
1.6.9 Function Decorators
Video:
Show
Hide Python provides special syntax to apply higher-order functions as part of
executing a def statement, called a decorator. Perhaps Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details