powered by
Add Memoization to a Function
addMemoization(fcn, verbose = FALSE)
the function to be memoized
show debugging information
memoized function
# NOT RUN { runifCached <- addMemoization(runif) # }
Run the code above in your browser using DataLab