3 ms·
Pure functions (with no side effects or state mutation) is pretty core to functional programming.
by flowerlad 6y ago
Pure functions (with no side effects or state mutation) is pretty core to functional programming.
- whimsicalism 6y agohttps://en.wikipedia.org/wiki/Functional_programming https://en.wikipedia.org/wiki/Functional_programming > Functional programming is sometimes treated as synonymous with purely functional programming, a subset of functional programming which treats all functions as deterministic mathematical functions, or pure functions. When a pure function is called with some given arguments, it will always return the same result, and cannot be affected by any mutable state or other side effects. It is a closely associated idea, but it is not necessarily "core" to what FP is.