Software Engineering ยท Design
A function that always returns the same output for the same input and has no side effects.
In practice: Pure functions are the easiest code to test, cache, and parallelize. In practice, most useful programs do need side effects โ the goal is to push them to the edges and keep the core logic pure.