Closed JustusAdam closed 1 year ago
This adds a new type of Cache which breaks recursive get calls in the compute function by returning an Option.
Cache
get
Option
Also adds a len method to gage the size of the cache.
len
Made caches ... consistent :P as requested
Oh can you also add a unit test that checks for the recursion-breaking behavior?
This adds a new type of
Cache
which breaks recursiveget
calls in the compute function by returning anOption
.Also adds a
len
method to gage the size of the cache.