All Questions
2 questions
3
votes
2
answers
437
views
Programatically determine that some functions are pure
I saw this question that shows it is impossible to programatically determine if a javascript function is pure, but is it sometimes possible to affirm that a function is pure - so something like...
...
11
votes
5
answers
3k
views
Compute if a function is pure
As per Wikipedia:
In computer programming, a function may be described as pure if both these statements about the function hold:
The function always evaluates the same result value given the same ...