CSC 351 - Chapter 15 Flashcards

1
Q

Functional Languages

A
  • based on mathematical functions

- simple semantics, simple syntax

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

Lambda Expressions

A
  • describe nameless functions (anonymous functions)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Functional Form

A
  • takes functions as parameters, or returns a function as a result. Or both.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Referential Transparency

A
  • evaluation of a function always produces the same result given the same parameters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Tail Recursive

A
  • a recursive call is the last operation of a function
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Currying

A
  • replaces a function with more than one parameter with a function with one parameter that returns a function that takes the other parameters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Lazy Evaluation

A
  • only computes the values that are necessary
How well did you know this?
1
Not at all
2
3
4
5
Perfectly