Creates a copy of an existing function such that its results are memoized
Creates a copy of an existing function such that its results are memoized.
## Default S3 method: addMemoization(fcn, envir=parent.frame(), ...)
fcn |
A |
envir |
The |
... |
Additional arguments for controlling the memoization,
i.e. all arguments of |
The new function is setup such that the the memoized call is done in the environment of the caller (the parent frame of the function).
Returns a function
.
Henrik Bengtsson
The returned function utilized memoizedCall
() internally.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.