Pure function
A function whose result depends only on its inputs and that changes nothing else. Same input always gives the same output, so it can be tested, cached, and reordered safely.
- See also: Side effect
- See also: Function
- Used in: Python
A function whose result depends only on its inputs and that changes nothing else. Same input always gives the same output, so it can be tested, cached, and reordered safely.