Higher-order Functions Flashcards
1
Q
Define Higher-Order Functions
A
-Takes functions as arguments, returns a function as its result
2
Q
Define Map
A
Function is applied to every element
3
Q
Define Filter
A
Applies criteria to build new list
4
Q
Define Fold
A
(reduce)
Applies function to each value until single value
e.g. + all elements (starting at pos)