High Order Functions Flashcards
1
Q
What is a high order function?
A
A function that can take a function as an argument and / or return a function.
2
Q
What are the 2 benefits of high order functions?
A
- Avoids explicit recursion.
- Avoids the reuse of code.
3
Q
What are the 3 main high order functions?
A
Map, Filter, Foldr.