Slide 10
Slide 10 text
A GENTLE INTRODUCTION TO FUNCTIONAL PROGRAMMING
Pure function
A pure function is a function that, given the same input, always
returns the same output without producing any side-effect.
Benefits
- readability
- parallelisation
- memoization
- more testable