A mathematical function returns the same result every time.
The functional world has 2 characteristics.
- The function has no side effects. Take input and produce output. -> called pure function.
- All data structure is immutable. -> There is no mutable state.