What is a Pure Function?
Predictable and simple for a life of zen
The term pure function usually pops up in conversations about functional programming. This is because it’s a pillar in the functional programming paradigm.
However, pure functions can exist in any programming paradigm. And they are pretty important as they maintain simplicity by keeping the code predictable.