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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 2 benefits of high order functions?

A
  1. Avoids explicit recursion.
  2. Avoids the reuse of code.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the 3 main high order functions?

A

Map, Filter, Foldr.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly