@ Scipy lecture notes, Edition 2017.1
https://www.scipy-lectures.org/_downloads/ScipyLectures-simple.pdf
p29
2.4.8 Functions are objects
Functions are first-class objects, which means they can be:
- assigned to a variable
- an item in a list (or any collection)
- passed as an argument to another function
link
-
What are “first class” objects? @ StakOverflow
- > In short, it means there are no restrictions on the object's use.
関数に変数を持たせることができる
@shiracamus さんのコメント
にて関数に変数(属性、アトリビュート)を持たせることができることを教えていただきました。
情報感謝です。