Higher-order Functions Flashcards

1
Q

Define Higher-Order Functions

A

-Takes functions as arguments, returns a function as its result

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

Define Map

A

Function is applied to every element

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

Define Filter

A

Applies criteria to build new list

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

Define Fold

A

(reduce)
Applies function to each value until single value
e.g. + all elements (starting at pos)

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