Functional programming paradigm Flashcards
1
Q
What is a first class object?
A
An object that can:
- Appear in expressions
- be assigned to a variable
- be assigned as an argument
- be returned from a function
2
Q
What is a high order function?
A
A function that takes a function as an argument or returns a function (or both)
3
Q
What is partial function application?
A
Providing some of a functions arguments and producing a function that takes the remainder of the arguments
4
Q
What is functional composition?
A
The process of combining two or more functions