Transforms a given function into memoized equivalent function.
Transforms a given function into memoized equivalent function.
Memoization is implemented by computing function f only once for each
argument value and storing computed result in a hash table, so that
it can be later retrieved on repeated invocations with the same argument.
The cache of computed results can be cleared by calling reset.
sealed traitVariance extends Product with Serializable
Transforms a given function into memoized equivalent function. Memoization is implemented by computing function f only once for each argument value and storing computed result in a hash table, so that it can be later retrieved on repeated invocations with the same argument. The cache of computed results can be cleared by calling
reset
.