Add first-class and higher-order functions
This commit is contained in:
3
glossary/First-class-function.md
Normal file
3
glossary/First-class-function.md
Normal file
@ -0,0 +1,3 @@
|
||||
### First-class function
|
||||
|
||||
A programming language is said to have first-class functions if it treats them as first-class citizens, meaning they can be passed as arguments, be returned as values from other functions, be assigned to variables and stored in data structures.
|
||||
3
glossary/Higher-order-function.md
Normal file
3
glossary/Higher-order-function.md
Normal file
@ -0,0 +1,3 @@
|
||||
### Higher-order function
|
||||
|
||||
Higher-order functions or functors are functions that either take other functions as arguments, return a function as a result, or both.
|
||||
Reference in New Issue
Block a user