Memoize a function
Before each call of a function, check that the cache holds the results and returns it if available. Otherwise, compute f and cache the result for next evluations.
Memoize.fun(fun)
fun |
function to memoize |
a function with same behavior than argument one, but using cache.
f=function(n) rnorm(n); F=Memoize.fun(f); F(5); F(6); F(5)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.