Section 12 Chapter 70 - Function Application Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Higher order function

A

A function that takes another function as a parameter or returns a function as a result (or both)

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

How many parameters can a function have

A

only 1

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

How are functions that seem to have multiple parameters evaluated

A

New functions are created that all feed into each other. Each of these functions has one parameter and returns one value

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

Partial Function Application

A

Decomposing multi argument functions into smaller functions with one argument each that are fed into each other

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

Map

A

Applies a given function to each element of a list and returns a list of results

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

Filter

A

Processes a list to return only the elements that meet a certain criteria

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

Fold/Reduce

A

Reduces a list of values to a single value by repeatedly applying a combining function to the values in the list

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