Hey Lewin!
When writing a dynamic programming solution for Advent of Code I was really happy to find memoize!
But sadly it does not (yet) support the use case.
One reason is, that due to the current implementation references are not supported.
I don't have a good solution yet, but I wonder: What would it take to change memoize from global cache to a cache with a non-'static lifetime?
Cheers, Henning
Hey Lewin!
When writing a dynamic programming solution for Advent of Code I was really happy to find memoize!
But sadly it does not (yet) support the use case.
One reason is, that due to the current implementation references are not supported.
I don't have a good solution yet, but I wonder: What would it take to change memoize from global cache to a cache with a non-'static lifetime?
Cheers, Henning