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.
Linear Supertypes
AnyRef, Any
Ordering
Alphabetic
By Inheritance
Inherited
MemoizedFunc
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
newMemoizedFunc(f: (AnyRef) ⇒ AnyRef)
Value Members
final def!=(arg0: Any): Boolean
Definition Classes
AnyRef → Any
final def##(): Int
Definition Classes
AnyRef → Any
final def==(arg0: Any): Boolean
Definition Classes
AnyRef → Any
defapply[T <: AnyRef](x: T): AnyRef
Apply the function to the given argument using memoized result if available.
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
.