The functional style Flashcards

1
Q

first order functions

A

no self reference
linear
do not take other functions as arguments

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

higher order functions

A

take other functions as arguments

returns functions as a result

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

how are comupations described in FP

A

list of equations that relate inputs to outputs

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

Strict evaluation

A

evaulates arguments before calling the functions

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

lazy evaluation

A

evaluates arguments only when they’re needed and about to be used
Haskell - no shared expression is evaluated more than once

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