memorize the results of a multi-parameter function.
the used arguments are cached weakly, meaning that if an non-primitive object obj was used as an argument,
then obj is not strongly bound to the memorized function's cache, meaning that if obj becomes inaccessible in all scopes,
then obj will become garbage collectible, which then will also clear the cache's reference to obj (and its memorized result).
memorize the results of a multi-parameter function.
the used arguments are cached weakly, meaning that if an non-primitive object
obj
was used as an argument, thenobj
is not strongly bound to the memorized function's cache, meaning that ifobj
becomes inaccessible in all scopes, thenobj
will become garbage collectible, which then will also clear the cache's reference toobj
(and its memorized result).