Why write pure functions
Why write pure functions?
1. Easy to test.
2. Easy to understand.
3. Composable.
4. Deterministic. (consistent output for a given input)
Why write pure functions?
1. Easy to test.
2. Easy to understand.
3. Composable.
4. Deterministic. (consistent output for a given input)