Add first-class and higher-order functions

This commit is contained in:
Angelos Chalaris
2018-09-01 13:31:49 +03:00
parent 014e29d0e3
commit f7bf9ddeb0
2 changed files with 6 additions and 0 deletions

View 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.

View 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.