Comment #0 by aurelien.fredouelle+dlang — 2019-05-11T08:51:53Z
Other common implementations of memoize usually allow to reset the cache. For example, this is quite common in python:
@memoize
def square (x):
return x*x
square(2)
square(3)
square.cache.clear()
It would be helpful if we could accomplish the same with std.functional.memoize.
Comment #1 by aurelien.fredouelle+dlang — 2019-05-12T12:01:54Z