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
2
Q
Three requirements of a Pure Function
A
- It returns only a single value.
- It calculates the return value based only on its arguments.
- It doesn’t mutate any existing values.