Y
Hacker News
new
|
ask
|
show
|
jobs
by
evmar
5317 days ago
The last example also doesn't actually memoize if the result of the computation is false -- it will recompute on each call.
1 comments
adammacleod
5317 days ago
It will store a false in the JavaScript version, I'm not familiar with Ruby but I believe you are correct in that case.
link