Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



#python #sicp

Elements with the fewest restrictions are said to have first-class status. Some of the "rights and privileges" of first-class elements are:

  1. They may be bound to names.
  2. They may be passed as arguments to functions.
  3. They may be returned as the results of functions.
  4. They may be included in data structures.

Python awards functions full first-class status, and the resulting gain in expressive power is enormous.

If you want to change selection, open document below and click on "Move attachment"

1.6 Higher-Order Functions
ns 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

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Details



Discussion

Do you want to join discussion? Click here to log in or create user.