4 ms·
Shouldn't that be solved with a closure in both languages?
by gizzlon 15y ago
Shouldn't that be solved with a closure in both languages?
- qntm 15y agoI'm not sure there's anything there to be solved. If a "function" can return two different answers despite being provided with the exact same input parameters, you simply should not be attempting to memoize it.