FunctionProgramming
文章平均质量分 64
ikeepo
https://ikeepo.github.io/
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
理解function and function call||reference to function in Python
Overview def function_name(): print("haha") function_name is a reference to the function; function_name() refers to the result of evaluating the function; References Real Python: Primer on Python Decorators StackOverflow: Calling a function of ..原创 2021-04-24 14:30:37 · 1128 阅读 · 0 评论 -
理解first-class objects in functional programming
Overview In functional programming, you work only with pure functions without side effects; In Python, functions also have side effects rather than just turing an input into an output; In Python, functions are first-class objects, which means that functi..原创 2021-04-23 20:55:08 · 462 阅读 · 0 评论 -
理解first-order vs. higher-order function
Overview In Python, decorators provide a simple syntax for calling higher-order functions. Higher-order function A higher-order function is a function that does at least one of the following: takes one or more functions as arguments (procedural parame..原创 2021-04-23 20:53:32 · 645 阅读 · 0 评论
分享