Functional Programming Flashcards

1
Q

Sometimes, the elegant implementation is just a function. Not a method. Not a class. Not a framework. Just a function.

A

John Carmack

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

Three requirements of a Pure Function

A
  1. It returns only a single value.
  2. It calculates the return value based only on its arguments.
  3. It doesn’t mutate any existing values.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly