Learn R Programming

simpleRCache (version 0.3.3)

addMemoization: Add Memoization to a Function

Description

Add Memoization to a Function

Usage

addMemoization(fcn, verbose = FALSE)

Arguments

fcn

the function to be memoized

verbose

show debugging information

Value

memoized function

Examples

Run this code
# NOT RUN {
runifCached <- addMemoization(runif)

# }

Run the code above in your browser using DataLab