Returns a new function, that returns and caches the results of the given function,
solely based on the single argument.
Think of it as a slimmed down version of memoize, by only supporting functions with
a single argument and comparing by reference.
This increases performance but reduces possible applications.
Returns a new function, that returns and caches the results of the given function, solely based on the single argument.
Think of it as a slimmed down version of
memoize
, by only supporting functions with a single argument and comparing by reference. This increases performance but reduces possible applications.See
eagerLookup